Sha256: 27e8a71fc1892c10a0dfec1c76c410e47bc70c091ad373d26af37ae7c0a4f628
Contents?: true
Size: 588 Bytes
Versions: 6
Compression:
Stored size: 588 Bytes
Contents
require 'miq_unicode' module NTFS using ManageIQ::UnicodeString # # 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
6 entries across 6 versions & 1 rubygems