Module: RubySMB::Dcerpc::Ndr::ConfPlugin

Defined in:
lib/ruby_smb/dcerpc/ndr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#max_countObject

Returns the value of attribute max_count.



320
321
322
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 320

def max_count
  @max_count
end

#read_until_indexObject

Returns the value of attribute read_until_index.



320
321
322
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 320

def read_until_index
  @read_until_index
end

Instance Method Details

#[]=(index, value) ⇒ Object



341
342
343
344
345
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 341

def []=(index, value)
  obj = super
  @max_count = length unless @max_count_set
  obj
end

#initialize_instanceObject



322
323
324
325
326
327
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 322

def initialize_instance
  @read_until_index = 0
  @max_count = 0
  @max_count_set = false
  super
end

#insert(index, *objs) ⇒ Object



329
330
331
332
333
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 329

def insert(index, *objs)
  obj = super
  @max_count = length unless @max_count_set
  obj
end

#set_max_count(val) ⇒ Object



347
348
349
350
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 347

def set_max_count(val)
  @max_count = @read_until_index = val
  @max_count_set = true
end

#slice_index(index) ⇒ Object



335
336
337
338
339
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 335

def slice_index(index)
  obj = super
  @max_count = length unless @max_count_set
  obj
end