powered by
Read bits from a bitstream
bs_read_bit(bs, n)
logical vector of bit values
Bistream connection object created with bs_open()
bs_open()
number of bits to read
raw_vec <- as.raw(1:3) bs <- bs_open(raw_vec, 'r') bs_read_bit(bs, 4) bs_is_aligned(bs) bs_close(bs)
Run the code above in your browser using DataLab