Module: FastImage::StreamUtil
- Included in:
- FiberStream, IOStream
- Defined in:
- lib/fastimage.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#read_byte ⇒ Object
320 321 322 |
# File 'lib/fastimage.rb', line 320 def read_byte read(1)[0].ord end |
#read_int ⇒ Object
324 325 326 |
# File 'lib/fastimage.rb', line 324 def read_int read(2).unpack('n')[0] end |