Class: Solace::AddressLookupTable

Inherits:
Object
  • Object
show all
Includes:
Concerns::BinarySerializable
Defined in:
lib/solace/address_lookup_table.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Concerns::BinarySerializable

#to_binary, #to_bytes, #to_io

Instance Attribute Details

#accountString

Returns The account key of the address lookup table.

Returns:

  • (String)

    The account key of the address lookup table



23
24
25
# File 'lib/solace/address_lookup_table.rb', line 23

def 
  @account
end

#readonly_indexesArray<Integer>

Returns The readonly indexes in the address lookup table.

Returns:

  • (Array<Integer>)

    The readonly indexes in the address lookup table



31
32
33
# File 'lib/solace/address_lookup_table.rb', line 31

def readonly_indexes
  @readonly_indexes
end

#writable_indexesArray<Integer>

Returns The writable indexes in the address lookup table.

Returns:

  • (Array<Integer>)

    The writable indexes in the address lookup table



27
28
29
# File 'lib/solace/address_lookup_table.rb', line 27

def writable_indexes
  @writable_indexes
end

Class Method Details

.deserialize(io) ⇒ Solace::AddressLookupTable

Parse address lookup table from io stream

Parameters:

  • io (IO or StringIO)

    The input to read bytes from.

Returns:



38
39
40
# File 'lib/solace/address_lookup_table.rb', line 38

def deserialize(io)
  Solace::Serializers::AddressLookupTableDeserializer.call(io)
end

Instance Method Details

#serializeString

Serialize the address lookup table

Returns:

  • (String)

    The serialized address lookup table (base64)



46
47
48
# File 'lib/solace/address_lookup_table.rb', line 46

def serialize
  Solace::Serializers::AddressLookupTableSerializer.call(self)
end