class RubySMB::SMB2::Packet::IoctlRequest
An SMB2
Ioctl Request Packet
as defined in [2.2.31 SMB2
IOCTL Request](msdn.microsoft.com/en-us/library/cc246545.aspx)
Constants
- COMMAND
Public Instance Methods
calc_input_offset()
click to toggle source
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.
@return [Integer] the value to store in input_offset
# 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