Handbook
Glossary
buffer-capacity ( buffer: buffer -- n )
Factor handbook
»
The language
»
Collections
»
Locked I/O buffers
Prev:
buffer-empty? ( buffer: buffer -- ? )
Next:
buffer@ ( buffer: buffer -- alien )
Vocabulary
io
.
buffers
Inputs
buffer
a
buffer
Outputs
n
a non-negative integer
Word description
Outputs the buffer's maximum capacity before growing.
Examples
USING: destructors io.buffers prettyprint ; 100 <buffer> [ buffer-capacity ] with-disposal .
100
Definition
USING:
accessors
kernel
math.private
typed
;
IN:
io.buffers
TYPED:
buffer-capacity
( buffer: buffer -- n )
[
size>>
]
[
fill>>
]
bi
fixnum-fast
;
inline