Class: RubySMB::SMB1::Packet::WriteAndxRequest
- Inherits:
-
GenericPacket
- Object
- BinData::Record
- GenericPacket
- RubySMB::SMB1::Packet::WriteAndxRequest
- Defined in:
- lib/ruby_smb/smb1/packet/write_andx_request.rb
Overview
A SMB1 SMB_COM_WRITE_ANDX Request Packet as defined in 2.2.4.43.1 Request 2.2.4.3.1 Client Request Extensions
Defined Under Namespace
Classes: DataBlock, ParameterBlock
Constant Summary collapse
- COMMAND =
RubySMB::SMB1::Commands::SMB_COM_WRITE_ANDX
Instance Method Summary collapse
-
#set_64_bit_offset(is_64_bit) ⇒ Object
Specifies whether the offset is a 32-bit (default) or 64-bit value.
Methods inherited from GenericPacket
describe, #display, fields_hashed, format_field, from_hex, #initialize_instance, #packet_smb_version, read, #status_code, #valid?, walk_fields
Instance Method Details
#set_64_bit_offset(is_64_bit) ⇒ Object
Specifies whether the offset is a 32-bit (default) or 64-bit value. When is_64_bit
is true, a 64-bit offset will be used and the OffsetHigh field will be added to the structure.
58 59 60 61 |
# File 'lib/ruby_smb/smb1/packet/write_andx_request.rb', line 58 def set_64_bit_offset(is_64_bit) raise ArgumentError.new, 'The value can only be true or false' unless [true, false].include?(is_64_bit) parameter_block.word_count = is_64_bit ? 0x0E : 0x0C end |