Handbook
Glossary
peek ( n bitstream -- value )
Vocabulary
bitstreams
Inputs
n
an
integer
bitstream
a
bit-reader
Outputs
value
an
integer
Word description
Reads the next n bits ahead of the cursor. Does not move the cursor; to read bits and move the cursor on use
read
.
Definition
IN:
bitstreams
GENERIC:
peek
( n bitstream -- value )
Methods
USING:
bitstreams
endian
;
M:
lsb0-bit-reader
peek
\
le>
\
subseq>bits-le
(peek)
;
USING:
bitstreams
endian
;
M:
msb0-bit-reader
peek
\
be>
\
subseq>bits-be
(peek)
;