Class: Gsf::Input

Inherits:
Object
  • Object
show all
Defined in:
lib/gsf/input.rb

Instance Method Summary collapse

Instance Method Details

#read(size = nil) ⇒ Object



20
21
22
23
24
# File 'lib/gsf/input.rb', line 20

def read(size=nil)
  size ||= remaining
  bytes = read_raw(size)
  bytes.pack("C*")
end

#read_rawObject



19
# File 'lib/gsf/input.rb', line 19

alias_method :read_raw, :read