powered by
Align the bitstream to the given number of bits - relative to start of bitstream
bs_align(bs, nbits = 8L, value = FALSE)
Bitstream connection returned invisibly
Bitstream
Bistream connection object created with bs_open()
bs_open()
number of bits of alignment w.r.t start of bitstream. Default: 8
bit fill value. Either TRUE or FALSE. Default FALSE
bs <- bs_open(raw(), 'w') bs_write_bit(bs, c(TRUE, FALSE, TRUE)) bs_is_aligned(bs, 8) bs_align(bs, nbits = 8) bs_is_aligned(bs, 8) output <- bs_close(bs) output
Run the code above in your browser using DataLab