Class: RubySMB::SMB1::Packet::Trans::DataBlock
- Inherits:
-
DataBlock
- Object
- BinData::Record
- DataBlock
- RubySMB::SMB1::Packet::Trans::DataBlock
- 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.
Direct Known Subclasses
PeekNmpipeResponse::DataBlock, Request::DataBlock, Response::DataBlock, TransactNmpipeRequest::DataBlock, TransactNmpipeResponse::DataBlock
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_padding ⇒ 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_instance ⇒ Object
14 15 16 17 |
# File 'lib/ruby_smb/smb1/packet/trans/data_block.rb', line 14 def initialize_instance super @enable_padding = true end |