Method: Codec::Base#decode

Defined in:
lib/codec/base.rb

#decode(buf) ⇒ Object



20
21
22
23
# File 'lib/codec/base.rb', line 20

def decode(buf)
  l = eval_length(buf,@length)
  return build_field(buf,l),buf[l,buf.length]
end