Sha256: 5d1c9516fea4bec1e5b8413445ef7ec016770c57349a6ca2a878419edf8f1919

Contents?: true

Size: 1.11 KB

Versions: 6

Compression:

Stored size: 1.11 KB

Contents

module RubySMB
  module SMB1
    module BitField
      # The Flags bit-field for SMB1 File Attributes as defined in
      # [2.2.1.2.4 SMB_FILE_ATTRIBUTES](https://msdn.microsoft.com/en-us/library/ee441551.aspx)
      class SmbFileAttributes < BinData::Record
        endian  :little
        bit2  :reserved,     label: 'Reserved Space'
        bit1  :archive,      label: 'Archive'
        bit1  :directory,    label: 'Directory'
        bit1  :volume,       label: 'Volume Label'
        bit1  :system,       label: 'System File'
        bit1  :hidden,       label: 'Hidden File'
        bit1  :read_only,    label: 'Read Only'
        # Byte boundary
        bit2  :reserved2,         label: 'Reserved Space'
        bit1  :search_archive,    label: 'Search for Archive Files'
        bit1  :search_directory,  label: 'Search for Directories'
        bit1  :reserved3,         label: 'Reserved Space'
        bit1  :search_system,     label: 'Search for System Files'
        bit1  :search_hidden,     label: 'Search for Hidden Files'
        bit1  :search_read_only,  label: 'Search for Read Only Files'
      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/smb_file_attributes.rb
ruby_smb-0.0.17 lib/ruby_smb/smb1/bit_field/smb_file_attributes.rb
ruby_smb-0.0.16 lib/ruby_smb/smb1/bit_field/smb_file_attributes.rb
ruby_smb-0.0.15 lib/ruby_smb/smb1/bit_field/smb_file_attributes.rb
ruby_smb-0.0.14 lib/ruby_smb/smb1/bit_field/smb_file_attributes.rb
ruby_smb-0.0.13 lib/ruby_smb/smb1/bit_field/smb_file_attributes.rb