System.TPFS.SuperBlock
- module System.TPFS.SolidArray
- data SuperBlockState
- = SBEmpty
- | SBSpaceAvailable
- | SBFull
- bitsToSBStates :: [Bool] -> [SuperBlockState]
- sbStatesToBits :: [SuperBlockState] -> [Bool]
Documentation
module System.TPFS.SolidArray
data SuperBlockState Source
Describes the three states a superblock can be in.
Constructors
| SBEmpty | |
| SBSpaceAvailable | |
| SBFull |
bitsToSBStates :: [Bool] -> [SuperBlockState]Source
Converts a list of bits into the equivalent [. The
input list length must be even, and the output list length will
always be half that of the input list.
SuperBlockState]
sbStatesToBits :: [SuperBlockState] -> [Bool]Source
Converts [ into a list of bits. Dual of SuperBlockState]bitsToSBState.