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

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

Overview

An NDR Uni-dimensional Fixed Array of bytes representation as defined in: Transfer Syntax NDR - NDR Constructed Types

Defined Under Namespace

Modules: WarnNoReadLengthPlugin Classes: NdrFixedByteArrayArgProcessor

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.arg_processorObject



121
122
123
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 121

def arg_processor
  NdrFixedByteArrayArgProcessor.new
end

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_instanceObject



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

#snapshotObject



116
117
118
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 116

def snapshot
  clamp_to_length(super)
end