buffer-length ( buffer: buffer -- n )
Factor handbook » The language » Collections » Locked I/O buffers

Prev:buffer-reset ( n: fixnum buffer: buffer -- )
Next:buffer-empty? ( buffer: buffer -- ? )


Vocabulary
io.buffers

Inputs
buffera buffer


Outputs
na non-negative integer


Word description
Outputs the number of unconsumed bytes in the buffer.

Examples
USING: alien destructors io.buffers kernel prettyprint ; 100 <buffer> [ B{ 7 14 21 } binary-object pick buffer-write buffer-length ] with-disposal .
3


Definition