Method: BinData::Buffer::BufferIO#read
- Defined in:
- lib/bindata/buffer.rb
#read(n) ⇒ Object
144 145 146 147 148 149 |
# File 'lib/bindata/buffer.rb', line 144 def read(n) nbytes = buffer_limited_n(n) @bytes_remaining -= nbytes chain_read(nbytes) end |