def bits.align

gralha-bytes@0.1.0.1 · bytes.bend:133

import gralha-bytes@0.1.0.1/bytes.bend as Bytes
import Base

133def bits.align(+stream: BitStream) -> BitStream:
134  BitStream{data, position, limit, valid} = stream
135  +pos = (((position + 7) / 8) * 8 : U32)
136  BitStream{data, pos, limit, valid && U32.is_le(pos, limit)}

Uses (7)

Used by (1)