bs_advance {bitstreamio}R Documentation

Advance bitstream

Description

Advance bitstream

Usage

bs_advance(bs, n)

Arguments

bs

Bistream connection object created with bs_open()

n

number of bits to advance

Value

Bitstream connection returned invisibly

Examples

raw_vec <- as.raw(1:3)
bs  <- bs_open(raw_vec, 'r')
bs_is_aligned(bs)
bs_advance(bs, 4)
bs_is_aligned(bs)
bs_read_bit(bs, 8)
bs_is_aligned(bs)
bs_close(bs)

[Package bitstreamio version 0.1.0 Index]