Class: RubySMB::Dcerpc::Ndr::NdrFixedByteArray
- Inherits:
-
BinData::BasePrimitive
- Object
- BinData::BasePrimitive
- RubySMB::Dcerpc::Ndr::NdrFixedByteArray
show all
- Defined in:
- lib/ruby_smb/dcerpc/ndr.rb
Overview
Defined Under Namespace
Modules: WarnNoReadLengthPlugin
Classes: NdrFixedByteArrayArgProcessor
Class Method Summary
collapse
Instance Method Summary
collapse
Instance Method Details
#assign(val) ⇒ Object
112
113
114
|
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 112
def assign(val)
super(fixed_byte_array(val))
end
|
#initialize_shared_instance ⇒ Object
105
106
107
108
109
110
|
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 105
def initialize_shared_instance
if (has_parameter?(:value) || has_parameter?(:asserted_value)) && !has_parameter?(:read_length)
extend WarnNoReadLengthPlugin
end
super
end
|
#snapshot ⇒ Object
116
117
118
|
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 116
def snapshot
clamp_to_length(super)
end
|