Module: FastImage::StreamUtil

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#read_byteObject



303
304
305
# File 'lib/fastimage.rb', line 303

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

#read_intObject



307
308
309
# File 'lib/fastimage.rb', line 307

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