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.
310 311 312 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 310 def max_count @max_count end |
#read_until_index ⇒ Object
Returns the value of attribute read_until_index.
310 311 312 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 310 def read_until_index @read_until_index end |
Instance Method Details
#[]=(index, value) ⇒ Object
331 332 333 334 335 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 331 def []=(index, value) obj = super @max_count = length unless @max_count_set obj end |
#initialize_instance ⇒ Object
312 313 314 315 316 317 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 312 def initialize_instance @read_until_index = 0 @max_count = 0 @max_count_set = false super end |
#insert(index, *objs) ⇒ Object
319 320 321 322 323 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 319 def insert(index, *objs) obj = super @max_count = length unless @max_count_set obj end |
#set_max_count(val) ⇒ Object
337 338 339 340 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 337 def set_max_count(val) @max_count = @read_until_index = val @max_count_set = true end |
#slice_index(index) ⇒ Object
325 326 327 328 329 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 325 def slice_index(index) obj = super @max_count = length unless @max_count_set obj end |