Sealed instantiable class
A subclass of <vector> whose element-type is <byte>.
<vector>
size:<integer> specifying the size of the buffer. Default value: 0.
next:<integer>. For an input buffer, this is where the next input byte can be found. For an output buffer, this is where the next output byte should be written to. Default value: 0.
end:<integer>. The value of this is one more than the last valid index in a buffer. For an input buffer, this represents the number of bytes read.
io
streams
A subclass of <vector> whose element-type is <byte>.
Instances of <buffer> contain a data vector and two indices: the inclusive start and the exclusive end of valid data in the buffer. The accessors for these indexes are called buffer-next and buffer-end.
Note that size: is not taken as a suggestion of the size the user would like, as with the value passed with buffer-size: to make on <buffered-stream>; if you supply a value with the size: init-keyword, that size is allocated, or, if that is not possible, an error is signalled, as with making any vector.