Sha256: c30003b6df871f107490e437a4162c33e069121bb315d8e304666364df9a7653

Contents?: true

Size: 1.98 KB

Versions: 6

Compression:

Stored size: 1.98 KB

Contents

module RubySMB
  module SMB1
    module BitField

      # Represents a CreateOptions BitField as used by both the NT_CREATE_ANDX
      # and the NT_TRANSACT_CREATE Requests. The definition for this field can be found at
      # [2.2.4.64.1 Request](https://msdn.microsoft.com/en-us/library/ee442175.aspx)
      class CreateOptions < BinData::Record
        endian  :little
        bit1    :create_tree_connection,      label: 'Create Tree Connection'
        bit1    :non_directory_file,          label: 'Non-Directory File'
        bit1    :synchronous_io_nonalert,     label: 'Synchronous IO Nonalert'
        bit1    :synchronous_io_alert,        label: 'Synchronous IO Alert'
        bit1    :no_intermediate_buffer,      label: 'No Intermediate Buffering'
        bit1    :sequential_only,             label: 'Sequential Only'
        bit1    :write_through,               label: 'Write Through'
        bit1    :directory_file,              label: 'Directory File'
        # Byte Boundary
        bit1    :no_compression,              label: 'No Compression'
        bit1    :open_for_backup_intent,      label: 'Open For Backup Intent'
        bit1    :open_by_file_id,             label: 'Open by File ID'
        bit1    :delete_on_close,             label: 'Delete on Close'
        bit1    :random_access,               label: 'Random Access'
        bit1    :open_for_recovery,           label: 'Open for Recovery'
        bit1    :no_ea_knowledge,             label: 'No EA Knowledge'
        bit1    :complete_if_oplocked,        label: 'Complete if OPLocked'
        # Byte Boundary
        bit1    :open_for_free_space_query,   label: 'Open for Free Space Query'
        bit1    :open_no_recall,              label: 'Open No Recall'
        bit1    :reserved2,                   label: 'Reserved Space'
        bit1    :reserve_opfilter,            label: 'Reserve OPFilter'
        bit4    :reserved,                    label: 'Reserved Space'
        # Byte Boundary
        bit8
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby_smb-0.0.18 lib/ruby_smb/smb1/bit_field/create_options.rb
ruby_smb-0.0.17 lib/ruby_smb/smb1/bit_field/create_options.rb
ruby_smb-0.0.16 lib/ruby_smb/smb1/bit_field/create_options.rb
ruby_smb-0.0.15 lib/ruby_smb/smb1/bit_field/create_options.rb
ruby_smb-0.0.14 lib/ruby_smb/smb1/bit_field/create_options.rb
ruby_smb-0.0.13 lib/ruby_smb/smb1/bit_field/create_options.rb