package alba
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Alba compiler
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.4.1.tar.gz
sha256=439b1dce07c86e914d1ebf1712c5581418314b0c8d13594f27a698b1d25fe272
md5=5cf58d4ed4eacbe6f330e9d2378ef5c6
doc/alba.fmlib_node/Fmlib_node/Io_buffer/index.html
Module Fmlib_node.Io_bufferSource
An IO buffer is an array of bytes
b0 b1 b2 ... br ... bw ... bn-1
^ ^ ^
rp wp n
rp: read pointer
wp: write pointer
n: size of the buffer
Invariant: 0 <= rp <= wp <= n
rp = wp: no more to read
wp = n: buffer is fullThe type of the buffer.
alloc size allocates an io buffer of size and set its read pointer and write pointer to 0.
getc b reads the character at the read pointer of the buffer b, advances the read pointer and returns the character. If the read pointer is at the position of the write pointer, then None is retured.
putc b ch appends the character c at the position of the write pointer and advances the write pointer. If the write pointer is already at the end None is returned.
The javascript buffer object.
copy src s0 s1 dst d0 copies the data from the buffer src between position s0 and s1 (excluding s1 to the buffer dst starting at position d0. Overlapping is handled properly.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>