class RubySMB::SMB1::Packet::WriteAndxRequest
A SMB1
SMB_COM_WRITE_ANDX Request Packet
as defined in [2.2.4.43.1 Request](msdn.microsoft.com/en-us/library/ee441954.aspx) [2.2.4.3.1 Client
Request Extensions](msdn.microsoft.com/en-us/library/ff469893.aspx)
Constants
- COMMAND
Public Instance Methods
set_64_bit_offset(is_64_bit)
click to toggle source
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.
@param is_64_bit [TrueClass, FalseClass] use a 64-bit offset if set to true, 32-bit otherwise
# 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