class YARP::Serialize::Loader

def load_constant

def load_constant
  index = load_varint - 1
  constant = constant_pool[index]
  unless constant
    offset = constant_pool_offset + index * 8
    start = serialized.unpack1("L", offset: offset)
    length = serialized.unpack1("L", offset: offset + 4)
    constant = input.byteslice(start, length).to_sym
    constant_pool[index] = constant
  end
  constant
end