Class: RubySMB::SMB2::Packet::IoctlRequest
- Inherits:
-
GenericPacket
- Object
- BinData::Record
- GenericPacket
- RubySMB::SMB2::Packet::IoctlRequest
- Defined in:
- lib/ruby_smb/smb2/packet/ioctl_request.rb
Overview
An SMB2 Ioctl Request Packet as defined in 2.2.31 SMB2 IOCTL Request
Constant Summary collapse
Instance Method Summary collapse
-
#calc_input_offset ⇒ Integer
Calculates the value for the input_offset field.
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
#calc_input_offset ⇒ Integer
Calculates the value for the input_offset field. If the input buffer is empty then this should be set to 0, otherwise it should return the absolute offset of the input buffer.
40 41 42 43 44 45 46 |
# File 'lib/ruby_smb/smb2/packet/ioctl_request.rb', line 40 def calc_input_offset if input_count.zero? 0 else buffer.abs_offset end end |