~/bend-docscommunity

src/transfer/FormatInspect.bend checks

raw source on the hub · import mylsm-lsm-store@0.6.0.1/src/transfer/FormatInspect.bend as FormatInspect

4 imports
import Base
import ../ByteManifest.bend as ByteManifest
import ../Manifest.bend as LegacyManifest
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

Types

type StorageFormat source · line 7 · raw

Data

Identifies the storage generation independently of the writing package.

type Identity source · line 13 · raw

Data

Reports package and storage identities as separate fields.

type Integrity source · line 17 · raw

Data

Reports validation status without conflating it with the format identity.

type Inspection source · line 26 · raw

Data

Separates API/storage version identity from manifest integrity.

Definitions

def magic.from_hex source · line 30 · raw

@value:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes

Converts a decoded hex literal to an owned buffer.

def magic.legacy source · line 38 · raw

0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes

Produces the generation-three Manifest magic.

def magic.current source · line 42 · raw

0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes

Produces the generation-four Manifest magic.

def classify.current source · line 46 · raw

@comparison:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Bool)) -> StorageFormat

Classifies the current magic after an unsuccessful legacy comparison.

def classify.legacy source · line 54 · raw

@comparison:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Bool)) -> StorageFormat

Preserves the candidate bytes while checking the current manifest magic.

def classify_manifest source · line 62 · raw

@magic:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> StorageFormat

Classifies known Manifest signatures without opening or modifying storage.

def describe source · line 66 · raw

@format:StorageFormat -> Identity

Describes the package release and storage format separately.

def inspect_manifest source · line 76 · raw

@magic:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Identity

Identifies a Manifest and returns its separate version fields.

def magic.slice.result source · line 79 · raw

@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes

def bytes.clone.pair source · line 83 · raw

@+len:U32 -> @copied:Pair(Array<U32>, Array<U32>) -> Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes)

def bytes.clone.split source · line 87 · raw

@bytes:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes)

def inspect.legacy.result source · line 92 · raw

@result:0xdd46804cd6318755b753109f15ff3725/src/Manifest.ParseResult -> Integrity

def inspect.current.result source · line 100 · raw

@result:Result<&1, &1, 0xdd46804cd6318755b753109f15ff3725/src/ByteManifest.Error, 0xdd46804cd6318755b753109f15ff3725/src/ByteManifest.ManifestValue> -> Integrity

def inspect.result source · line 111 · raw

@format:StorageFormat -> @bytes:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Integrity

def format.clone source · line 117 · raw

@format:StorageFormat -> Pair(StorageFormat, StorageFormat)

def inspect.bytes.format source · line 123 · raw

@bytes:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @formats:Pair(StorageFormat, StorageFormat) -> Inspection

def inspect.bytes.copies source · line 131 · raw

@copies:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Inspection

def inspect_manifest_bytes source · line 139 · raw

@bytes:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Inspection

Identifies and validates one complete manifest without changing storage.