class YARP::LibRubyParser::YPBuffer

with the C version.
This object represents a yp_buffer_t. Its structure must be kept in sync

def to_ruby_string

Read the contents of the buffer into a String object and return it.
def to_ruby_string
  self[:value].read_string(self[:length])
end