Sha256: 89c6e7a27104134780aba19b9f4c97cf4d36bbdd1323fc70defee3e6ddb968a9
Contents?: true
Size: 820 Bytes
Versions: 66
Compression:
Stored size: 820 Bytes
Contents
module NTFS class Bitmap # BITMAP_ATTR - Attribute: Bitmap (0xb0). # # Contains an array of bits (aka a bitfield). # # When used in conjunction with the index allocation attribute, each bit # corresponds to one index block within the index allocation attribute. Thus # the number of bits in the bitmap * index block size / cluster size is the # number of clusters in the index allocation attribute. # def self.create_from_header(header, buf) return Bitmap.new(buf) if header.containsFileNameIndexes? $log.debug("Skipping #{header.typeName} for name <#{header.name}>") if $log nil end attr_reader :data, :length def initialize(buf) @data = buf.kind_of?(DataRun) ? buf.read(buf.length) : buf @length = @data.length end end end
Version data entries
66 entries across 66 versions & 1 rubygems