Class: RubySMB::Dcerpc::Ndr::NdrFixArray
- Inherits:
-
BinData::Array
- Object
- BinData::Array
- RubySMB::Dcerpc::Ndr::NdrFixArray
show all
- Defined in:
- lib/ruby_smb/dcerpc/ndr.rb
Overview
Instance Method Summary
collapse
Instance Method Details
#append_new_element ⇒ Object
444
445
446
447
|
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 444
def append_new_element
fixed_size = get_parameter(:initial_length)
raise ArgumentError, "Can't add new elements to a NdrFixArray (set to #{fixed_size} elements)"
end
|
#initialize_shared_instance ⇒ Object
430
431
432
433
|
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 430
def initialize_shared_instance
super
extend ArrayPlugin
end
|
#insert(index, *objs) ⇒ Object
435
436
437
438
439
440
441
442
|
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 435
def insert(index, *objs)
fixed_size = get_parameter(:initial_length)
if (length + objs.size) != fixed_size
raise ArgumentError, "Can't add new elements to a NdrFixArray (set to #{fixed_size} elements)"
else
super
end
end
|