bs_write_bit {bitstreamio} | R Documentation |
Write unaligned bits to a bitstream
Description
Write unaligned bits to a bitstream
Usage
bs_write_bit(bs, x)
Arguments
bs |
Bistream connection object created with |
x |
Logical vector of bit values |
Value
Bitstream
connection returned invisibly
Examples
bs <- bs_open(raw(), 'w')
bs_write_bit(bs, c(TRUE, FALSE, TRUE))
bs_align(bs, nbits = 8)
bs_flush(bs)
output <- bs_close(bs)
output
[Package bitstreamio version 0.1.0 Index]