Method: BinData::IO::Read#with_buffer
- Defined in:
- lib/bindata/io.rb
#with_buffer(n, &block) ⇒ Object
Sets a buffer of n bytes on the io stream. Any reading or seeking calls inside the block will be contained within this buffer.
184 185 186 187 188 189 |
# File 'lib/bindata/io.rb', line 184 def with_buffer(n, &block) with_buffer_common(n) do block.call read end end |