Expand description
Types for representing and performing efficient power-of-two block size arithmetic and alignments.
Structs§
- Generic
Block Size - Represents a block size that is a power of 2, parameterized by a
BlockSizeSpec. - Mask
Shift Spec - A
BlockSizeSpecthat packs the alignment mask in the upper 32 bits and the power-of-two bit shift in the lower 32 bits:(mask << 32) | shift. - Page
Size Spec BlockSizeSpecimplementation representing the Fuchsia system memory page size.
Constants§
- PAGE_
SIZE - The system memory page size.
Traits§
- Block
Size Spec - Defines the block size specification for use with
GenericBlockSize. Only block sizes which are a power of 2 are supported. - IsAligned
- A trait for checking if something is aligned to a block size.
Type Aliases§
- Block
Size - A
GenericBlockSizeconfigured with a block size stored as aMaskShiftSpec.