Module: Solace::Concerns::BinarySerializable::ClassMethods

Defined in:
lib/solace/concerns/binary_serializable.rb

Overview

Class methods for binary serializable

Since:

  • 0.0.1

Instance Method Summary collapse

Instance Method Details

#deserialize(stream) ⇒ Solace::Instruction

Parse record from bytestream

Parameters:

  • stream (IO, StringIO)

    The input to read bytes from.

Returns:

Since:

  • 0.0.1



61
62
63
64
65
# File 'lib/solace/concerns/binary_serializable.rb', line 61

def deserialize(stream)
  self::DESERIALIZER.new(stream).call
rescue NameError => e
  raise "DESERIALIZER must be defined: #{e.message}"
end