Read and Write Bits from Files, Connections and Raw Vectors


[Up] [Top]

Documentation for package ‘bitstreamio’ version 0.1.0

Help Pages

assert_bs Test if an object is a bitstream object and fail if it is not
bits_to_raw Convert between logical vector of bits and raw vector
bits_to_uint Convert between bits and unsigned integers
bs_advance Advance bitstream
bs_align Align the bitstream to the given number of bits - relative to start of bitstream
bs_close Open/close a bitstream
bs_flush Flush bits in the buffer
bs_is_aligned Is the current bit connection aligned at the given number of bits for reading/writing?
bs_open Open/close a bitstream
bs_peek Peek at bits from a bitstream i.e. examine bits without advancing bitstream
bs_read_bit Read bits from a bitstream
bs_read_byte Read/Write unaligned bytes with a bitstream
bs_read_sint_exp_golomb Read/Write Exponential-Golomb encoded signed integers
bs_read_uint Read/Write unsigned integers
bs_read_uint_exp_golomb Read/Write Exponential-Golomb encoded non-negative integers
bs_write_bit Write unaligned bits to a bitstream
bs_write_byte Read/Write unaligned bytes with a bitstream
bs_write_sint_exp_golomb Read/Write Exponential-Golomb encoded signed integers
bs_write_uint Read/Write unsigned integers
bs_write_uint_exp_golomb Read/Write Exponential-Golomb encoded non-negative integers
exp_golomb_bits_to_sint Convert between signed integers and Exponential-Golomb bit sequences
exp_golomb_bits_to_uint Convert between non-negative integers and Exponential Golomb bit sequences
is_bs Test if an object is a bitstream object
pad_bits Pad a logical vector to the given size
raw_to_bits Convert between logical vector of bits and raw vector
sint_to_exp_golomb_bits Convert between signed integers and Exponential-Golomb bit sequences
uint_to_bits Convert between bits and unsigned integers
uint_to_exp_golomb_bits Convert between non-negative integers and Exponential Golomb bit sequences