class Bones::RPC::Adapter::Erlang::Unpacker

Attributes

buffer[R]

Public Class Methods

new(data) click to toggle source
# File lib/bones/rpc/adapter/erlang.rb, line 55
def initialize(data)
  @buffer = Bones::RPC::Parser::Buffer.new(data)
end

Public Instance Methods

read() click to toggle source
# File lib/bones/rpc/adapter/erlang.rb, line 59
def read
  ext_data = Adapter.read_ext(buffer)
  ::Erlang.binary_to_term(ext_data)
rescue NotImplementedError
  nil
end