Handbook
Glossary
enough-bits? ( n bs -- ? )
Vocabulary
bitstreams
Inputs
n
an
integer
bs
a
bit-reader
Outputs
?
a
boolean
Word description
Returns a true value if at least n bits remain to be read from the bit-reader.
Definition
USING:
accessors
kernel
math
sequences
;
IN:
bitstreams
:
enough-bits?
( n bs -- ? )
[
bytes>>
length
]
[
byte-pos>>
-
8
*
]
[
bit-pos>>
-
]
tri
<=
;