Class: RubySMB::SMB1::Packet::Trans2::DataBlock

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

Overview

Extends the DataBlock to include padding methods that all Trans2 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)


11
12
13
# File 'lib/ruby_smb/smb1/packet/trans2/data_block.rb', line 11

def enable_padding
  @enable_padding
end

Instance Method Details

#initialize_instanceObject



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

def initialize_instance
  super
  @enable_padding = true
end