Class: RubySMB::SMB1::Packet::Trans::DataBlock

Inherits:
DataBlock
  • Object
show all
Defined in:
lib/ruby_smb/smb1/packet/trans/data_block.rb

Overview

Extends the DataBlock to include padding methods that all Trans DataBlocks will need to handle proper byte alignment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataBlock

calculate_byte_count, #calculate_byte_count, data_fields, #field_enabled?

Instance Attribute Details

#enable_paddingBoolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/ruby_smb/smb1/packet/trans/data_block.rb', line 12

def enable_padding
  @enable_padding
end

Instance Method Details

#initialize_instanceObject



14
15
16
17
# File 'lib/ruby_smb/smb1/packet/trans/data_block.rb', line 14

def initialize_instance
  super
  @enable_padding = true
end