Module: FastImage::StreamUtil
- Included in:
- FiberStream, IOStream
- Defined in:
- lib/fastimage.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#read_byte ⇒ Object
334 335 336 |
# File 'lib/fastimage.rb', line 334 def read_byte read(1)[0].ord end |
#read_int ⇒ Object
338 339 340 |
# File 'lib/fastimage.rb', line 338 def read_int read(2).unpack('n')[0] end |