bs_read_bit {bitstreamio} | R Documentation |
Read bits from a bitstream
Description
Read bits from a bitstream
Usage
bs_read_bit(bs, n)
Arguments
bs |
Bistream connection object created with |
n |
number of bits to read |
Value
logical vector of bit values
Examples
raw_vec <- as.raw(1:3)
bs <- bs_open(raw_vec, 'r')
bs_read_bit(bs, 4)
bs_is_aligned(bs)
bs_close(bs)
[Package bitstreamio version 0.1.0 Index]