Module: RubySMB::Dcerpc::Ndr::ConfPlugin
- Defined in:
- lib/ruby_smb/dcerpc/ndr.rb
Instance Attribute Summary collapse
-
#max_count ⇒ Object
Returns the value of attribute max_count.
-
#read_until_index ⇒ Object
Returns the value of attribute read_until_index.
Instance Method Summary collapse
- #[]=(index, value) ⇒ Object
- #initialize_instance ⇒ Object
- #insert(index, *objs) ⇒ Object
- #set_max_count(val) ⇒ Object
- #slice_index(index) ⇒ Object
Instance Attribute Details
#max_count ⇒ Object
Returns the value of attribute max_count.
324 325 326 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 324 def max_count @max_count end |
#read_until_index ⇒ Object
Returns the value of attribute read_until_index.
324 325 326 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 324 def read_until_index @read_until_index end |
Instance Method Details
#[]=(index, value) ⇒ Object
345 346 347 348 349 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 345 def []=(index, value) obj = super @max_count = length unless @max_count_set obj end |
#initialize_instance ⇒ Object
326 327 328 329 330 331 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 326 def initialize_instance @read_until_index = 0 @max_count = 0 @max_count_set = false super end |
#insert(index, *objs) ⇒ Object
333 334 335 336 337 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 333 def insert(index, *objs) obj = super @max_count = length unless @max_count_set obj end |
#set_max_count(val) ⇒ Object
351 352 353 354 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 351 def set_max_count(val) @max_count = @read_until_index = val @max_count_set = true end |
#slice_index(index) ⇒ Object
339 340 341 342 343 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 339 def slice_index(index) obj = super @max_count = length unless @max_count_set obj end |