# Functions
CompressionLevelFromMetadata returns image compression type stored in the metadata.
CompressionLevelFromString parses a string into the CompressionLevel.
MetadataUnsafe reads out the metadata from a state file without verifying any HMAC.
NewAsyncReader initializes a new AsyncReader.
NewReader returns a reader for a statefile.
NewWriter returns a state data writer for a statefile.
# Constants
CompressionKey is the key for the compression level in the metadata.
CompressionLevelDefault represents the default compression level.
CompressionLevelFlateBestSpeed represents flate algorithm in best-speed mode.
CompressionLevelNone represents the absence of any compression on an image.
# Variables
ErrBadMagic is returned if the header does not match.
ErrInvalidFlags is returned if passed flags set is invalid.
ErrInvalidMetadataLength is returned if the metadata length is too large.
ErrMetadataInvalid is returned if passed metadata is invalid.
ErrMetadataMissing is returned if the state file is missing mandatory metadata.
# Structs
AsyncReader can be used to do reads asynchronously.
Options is statefile options.
# Type aliases
CompressionLevel is the image compression level.