Skip to main content

Crate storage_units

Crate storage_units 

Source
Expand description

Types for representing and performing efficient power-of-two block size arithmetic and alignments.

Structs§

GenericBlockSize
Represents a block size that is a power of 2, parameterized by a BlockSizeSpec.
MaskShiftSpec
A BlockSizeSpec that packs the alignment mask in the upper 32 bits and the power-of-two bit shift in the lower 32 bits: (mask << 32) | shift.
PageSizeSpec
BlockSizeSpec implementation representing the Fuchsia system memory page size.

Constants§

PAGE_SIZE
The system memory page size.

Traits§

BlockSizeSpec
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§

BlockSize
A GenericBlockSize configured with a block size stored as a MaskShiftSpec.