Class: RubySMB::SMB1::Packet::Trans2::DataBlock
- Inherits:
-
DataBlock
- Object
- BinData::Record
- DataBlock
- RubySMB::SMB1::Packet::Trans2::DataBlock
- 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.
Direct Known Subclasses
NtTrans::CreateRequest::DataBlock, NtTrans::CreateResponse::DataBlock, NtTrans::Request::DataBlock, FindFirst2RequestDataBlock, FindFirst2ResponseDataBlock, FindNext2RequestDataBlock, FindNext2ResponseDataBlock, Open2RequestDataBlock, Open2ResponseDataBlock, QueryFileInformationRequestDataBlock, QueryFileInformationResponseDataBlock, QueryFsInformationRequestDataBlock, QueryFsInformationResponseDataBlock, QueryPathInformationRequestDataBlock, QueryPathInformationResponseDataBlock, Request::DataBlock, SetFileInformationRequestDataBlock, SetFileInformationResponseDataBlock
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
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_instance ⇒ Object
13 14 15 16 |
# File 'lib/ruby_smb/smb1/packet/trans2/data_block.rb', line 13 def initialize_instance super @enable_padding = true end |