Class: RubySMB::Dcerpc::Ndr::NdrFixedByteArray

Inherits:
NdrFixArray
  • Object
show all
Defined in:
lib/ruby_smb/dcerpc/ndr.rb

Overview

Specific implementation for fixed array of bytes, which can be set from an array of unit8 or a string

Instance Method Summary collapse

Methods inherited from NdrFixArray

#append_new_element, #initialize_shared_instance, #insert

Instance Method Details

#assign(val) ⇒ Object



450
451
452
453
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 450

def assign(val)
  val = val.bytes if val.is_a?(String)
  super(val.to_ary)
end