buffer-write1 ( byte: fixnum buffer: buffer -- )
Factor handbook » The language » Collections » Locked I/O buffers

Prev:buffer-read-until ( seps buffer: buffer -- byte-array sep/f )
Next:buffer-write ( c-ptr n buffer: buffer -- )


Vocabulary
io.buffers

Inputs
bytea byte
buffera buffer


Outputs
None

Word description
Appends a single byte to a buffer.

Warning
This word will corrupt memory if the buffer is full.


Examples
USING: destructors io.buffers kernel prettyprint ; 100 <buffer> [ 237 over buffer-write1 buffer-pop ] with-disposal .
237


Definition