Resets the stream alignment to the next byte. This is only useful when using bit-based primitives.
class MyRec < BinData::Record bit4 :a resume_byte_alignment bit4 :b end MyRec.read("\x12\x34") #=> {"a" => 1, "b" => 3}
# File lib/bindata/alignment.rb, line 19 def do_num_bytes; 0; end
# File lib/bindata/alignment.rb, line 21 def do_read(io) io.reset_read_bits end
Generated with the Darkfish Rdoc Generator 2.