Class: Syskit::DRoby::V5::TypelibTypeDumper::DRoby

Inherits:
Object
  • Object
show all
Defined in:
lib/syskit/droby/v5/droby_dump.rb

Overview

Marshalling representation of a typelib value

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(byte_array, type) ⇒ DRoby

Returns a new instance of DRoby



125
126
127
# File 'lib/syskit/droby/v5/droby_dump.rb', line 125

def initialize(byte_array, type)
    @byte_array, @type = byte_array, type
end

Instance Attribute Details

#byte_arrayObject (readonly)

Returns the value of attribute byte_array



123
124
125
# File 'lib/syskit/droby/v5/droby_dump.rb', line 123

def byte_array
  @byte_array
end

#typeObject (readonly)

Returns the value of attribute type



124
125
126
# File 'lib/syskit/droby/v5/droby_dump.rb', line 124

def type
  @type
end

Instance Method Details

#proxy(peer) ⇒ Object



128
129
130
# File 'lib/syskit/droby/v5/droby_dump.rb', line 128

def proxy(peer)
    peer.local_object(type).from_buffer(byte_array)
end