Structs

Run-length encoding of the uninit mask. Used to copy parts of a mask multiple times to another allocation.
A bitmask where each bit refers to the byte with the same index. If the bit is true, the byte is initialized. If it is false the byte is uninitialized.

Enums

A contiguous chunk of initialized or uninitialized memory.

Constants

Functions

A fast implementation of find_bit, which skips over an entire block at a time if it’s all 0s (resp. 1s), and finds the first 1 (resp. 0) bit inside a block using trailing_zeros instead of a loop.
Search one block, returning the index of the first bit equal to is_init.

Type Definitions

Block 🔒