Expand description
Big-endian (MSB-first) allocation-bitmap helpers, as used by HFS, HFS+ and ProDOS.
Functions§
- bitmap_
clear_ bit_ be - Clear the bit at
indexin a big-endian bitmap. - bitmap_
collect_ clear_ runs_ be - Collect every contiguous run of clear bits in a big-endian bitmap as
(start, length)pairs. Used by the HFS+ multi-extent allocator (largest-run-first) — seeallocate_extentsinsrc/fs/hfsplus.rs. - bitmap_
find_ clear_ bit_ be - Find the first clear (0) bit in a big-endian bitmap within
max_bits. - bitmap_
find_ clear_ run_ be - Find a contiguous run of
countclear bits in a big-endian bitmap. Returns the starting bit index, or None if no such run exists. - bitmap_
find_ set_ bit_ be - Find the first set (1) bit in a big-endian bitmap within
max_bits. ProDOS uses bit=1 for FREE blocks, so this finds the first free block. - bitmap_
set_ bit_ be - Set the bit at
indexin a big-endian bitmap. - bitmap_
test_ bit_ be - Test whether the bit at
indexis set in a big-endian bitmap.