Sha256: becc08b6f0ca7663005c72c7e8a816b09029faed0dfbc9327583bc7b8683ea76

Contents?: true

Size: 560 Bytes

Versions: 60

Compression:

Stored size: 560 Bytes

Contents

require 'util/miq-unicode'

module NTFS
  #
  # VOLUME_NAME - Attribute: Volume name (0x60).
  #
  # NOTE: Always resident.
  # NOTE: Present only in FILE_Volume.
  #
  # Data of this class is not structured.
  #

  class VolumeName
    attr_reader :name

    def initialize(buf)
      buf   = buf.read(buf.length) if buf.kind_of?(DataRun)
      @name = buf.UnicodeToUtf8
    end

    def to_s
      @name
    end

    def dump
      out = "\#<#{self.class}:0x#{'%08x' % object_id}>\n  "
      out << @name
      out << "---\n"
    end
  end
end # module NTFS

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
manageiq-smartstate-0.3.4 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.4.0 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.18.2 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.3.3 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.3.2 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.3.1 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.3.0 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.24 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.18.1 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.23 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.22 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.21 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.20 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.19 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.18 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.17 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.16 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.15 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.14 lib/fs/ntfs/attrib_volume_name.rb
manageiq-smartstate-0.2.13 lib/fs/ntfs/attrib_volume_name.rb