Handbook
Glossary
buffer-read-unsafe ( n: fixnum buffer: buffer -- n ptr )
Factor handbook
»
The language
»
Collections
»
Locked I/O buffers
Prev:
buffer-read ( n: fixnum buffer: buffer -- byte-array )
Next:
buffer-read-until ( seps buffer: buffer -- byte-array sep/f )
Vocabulary
io
.
buffers
Inputs
n
a
fixnum
buffer
a
buffer
Outputs
n
an
object
ptr
an
object
Definition
USING:
kernel
math.order
typed
;
IN:
io.buffers
TYPED:
buffer-read-unsafe
( n: fixnum buffer: buffer -- n ptr )
[
buffer-length
min
]
keep
[
buffer@
]
[
buffer-consume
]
2bi
;
inline