Module: FastImage::StreamUtil

Included in:
FiberStream, IOStream
Defined in:
lib/fastimage.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#read_byteObject



359
360
361
# File 'lib/fastimage.rb', line 359

def read_byte
  read(1)[0].ord
end

#read_intObject



363
364
365
# File 'lib/fastimage.rb', line 363

def read_int
  read(2).unpack('n')[0]
end