package matrix
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Ansi.WriterSource
Byte buffer writers.
Byte buffer writers for escape sequence emission.
A writer wraps a Stdlib.Bytes.t buffer and manages a write position. Writers are mutable and not thread-safe: use one writer per thread.
Writers
The type for byte buffer writers.
make buf is a writer targeting buf. The buffer must be large enough to contain all generated output; no bounds checking is performed.
make_counting () is a writer that tracks output length without writing any bytes. Useful for measuring escape sequence sizes before allocating a buffer.
Inspection
reset_pos w resets the write position to zero. The underlying buffer is not cleared.
Writing
write_char w c appends character c. In counting mode, increments the position without writing.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page