bs_flush {bitstreamio} | R Documentation |
Flush bits in the buffer
Description
This is called internally to flush bitstream buffers to the underlying R connection.
Usage
bs_flush(bs)
Arguments
bs |
Bistream connection object created with |
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]