Sha256: 32b4788e37afe0349f1d1bfbdaa98c0e13cf3df0e346e0091faa5224de977ff4

Contents?: true

Size: 1.42 KB

Versions: 10

Compression:

Stored size: 1.42 KB

Contents

module RubySMB
  module SMB2
    module Packet
      # An SMB2 Read Request Packet as defined in
      # [2.2.19 SMB2 READ Request](https://msdn.microsoft.com/en-us/library/cc246527.aspx)
      class ReadRequest < RubySMB::GenericPacket
        endian :little

        smb2_header           :smb2_header
        uint16                :structure_size,        label: 'Structure Size',  initial_value: 49
        uint8                 :padding,               label: 'Padding',         initial_value: 0x50
        uint8                 :flags,                 label: 'Flags'
        uint32                :read_length,           label: 'Read Length'
        uint64                :offset,                label: 'Read Offset'
        smb2_fileid           :file_id,               label: 'File ID'
        uint32                :min_bytes,             label: 'Minimum Count'
        uint32                :channel,               label: 'Channel'
        uint32                :remaining_bytes,       label: 'Remaining Bytes'
        uint16                :channel_offset,        label: 'Read Channel Info Offset'
        uint16                :channel_length,        label: 'Read Channel Info Length'
        string                :buffer,                label: 'Read Channel info Buffer', initial_value: 0x00

        def initialize_instance
          super
          smb2_header.command = RubySMB::SMB2::Commands::READ
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby_smb-1.0.3 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-1.0.2 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-1.0.1 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-1.0.0 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-0.0.24 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-0.0.23 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-0.0.22 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-0.0.21 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-0.0.20 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-0.0.19 lib/ruby_smb/smb2/packet/read_request.rb