Module: BinData::BitAligned
- Defined in:
- lib/bindata/alignment.rb
Overview
Defined Under Namespace
Classes: BitAlignedIO
Instance Method Summary collapse
Instance Method Details
#bit_aligned? ⇒ Boolean
63 64 65 |
# File 'lib/bindata/alignment.rb', line 63 def bit_aligned? true end |
#do_num_bytes ⇒ Object
71 72 73 |
# File 'lib/bindata/alignment.rb', line 71 def do_num_bytes super.to_f end |
#do_read(io) ⇒ Object
67 68 69 |
# File 'lib/bindata/alignment.rb', line 67 def do_read(io) super(BitAlignedIO.new(io)) end |
#do_write(io) ⇒ Object
75 76 77 |
# File 'lib/bindata/alignment.rb', line 75 def do_write(io) super(BitAlignedIO.new(io)) end |