Expand description
Sector-related data structures
Sectors and corresponding metadata created by functions in plotting
module
have a specific structure, represented by data structured in this module.
It is typically not needed to construct these data structures explicitly outside of this crate, instead they will be returned as a result of certain operations (like plotting).
Structs§
- Encoded
Chunks Used - Wrapper data structure that allows to iterate mutably over encoded chunks bitfields, while maintaining up-to-date number of encoded chunks
- Sector
Contents Map - Map of sector contents.
- Sector
Metadata - Metadata of the plotted sector
- Sector
Metadata Checksummed - Same as
SectorMetadata
, but with checksums verified during SCALE encoding/decoding
Enums§
- Sector
Contents MapEncode Into Error - Error happening when trying to encode
SectorContentsMap
into bytes - Sector
Contents MapFrom Bytes Error - Error happening when trying to create
SectorContentsMap
from bytes - Sector
Contents MapIteration Error - Error happening when trying to create
SectorContentsMap
from bytes
Functions§
- sector_
record_ chunks_ size - Size of the part of the plot containing record chunks (s-buckets).
- sector_
record_ metadata_ size - Size of the part of the plot containing record metadata.
- sector_
size - Exact sector plot size (sector contents map, record chunks, record metadata).