Handbook
Glossary
<buffer> ( n -- buffer )
Factor handbook
»
The language
»
Collections
»
Locked I/O buffers
Prev:
buffer
Next:
buffer-reset ( n: fixnum buffer: buffer -- )
Vocabulary
io
.
buffers
Inputs
n
a non-negative integer
Outputs
buffer
a
buffer
Word description
Allocates a buffer with an initial capacity of
n
bytes.
Definition
USING:
kernel
libc
;
IN:
io.buffers
:
<buffer>
( n -- buffer )
dup
malloc
0 0
f
buffer
boa
;
inline