Handbook
Glossary
align ( n bitstream -- )
Vocabulary
bitstreams
Inputs
n
an
integer
bitstream
a
bit-reader
Outputs
None
Word description
Moves the read cursor of the bit-reader forward until its position in bits from the start of the stream is an even multiple of n. If it is already such a multiple, the cursor is not moved at all.
Definition
USING:
kernel
;
IN:
bitstreams
:
align
( n bitstream -- )
[
get-abp
swap
(align)
]
[
set-abp
]
bi
;
inline