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



454
455
456
457
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 454

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