Skip to main content

Module bitmap

Module bitmap 

Source
Expand description

Bitmap utilities for Unix-like filesystems.

Provides efficient bit-level operations on block and inode bitmaps. Uses little-endian bit order within each byte (bit 0 = LSB), matching the standard Linux bitmap convention used by ext2/3/4, xfs AG bitmaps, UFS cylinder group bitmaps, and Minix zone maps.

Structs§

BitmapReader
A read-only view over a bitmap stored as a byte slice.
ClearBitsIter
Iterator over clear bit indices in a BitmapReader.
SetBitsIter
Iterator over set bit indices in a BitmapReader.

Functions§

bitmap_clear_bit
Clear the bit at index in a mutable bitmap (little-endian bit order).
bitmap_find_clear_bit
Find the first clear (0) bit in the bitmap within bit_count valid bits.
bitmap_set_bit
Set the bit at index in a mutable bitmap (little-endian bit order).