Handbook
Glossary
buffer-reset ( n: fixnum buffer: buffer -- )
Factor handbook
»
The language
»
Collections
»
Locked I/O buffers
Prev:
<buffer> ( n -- buffer )
Next:
buffer-length ( buffer: buffer -- n )
Vocabulary
io
.
buffers
Inputs
n
a non-negative integer
buffer
a
buffer
Outputs
None
Word description
Resets the fill pointer to 0 and the position to
count
.
Definition
USING:
accessors
kernel
typed
;
IN:
io.buffers
TYPED:
buffer-reset
( n: fixnum buffer: buffer -- )
swap
>>fill
0
>>pos
drop
;
inline