Module: EM::FastImage::StreamUtil

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#read_byteObject



319
320
321
# File 'lib/em-fastimage.rb', line 319

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

#read_intObject



323
324
325
# File 'lib/em-fastimage.rb', line 323

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