src/transfer/Restore.bend checks
raw source on the hub · import mylsm-lsm-store@0.6.0.2/src/transfer/Restore.bend as Restore
9 imports
import Base import ../ByteMemTable.bend as ByteMemTable import ../ByteWal.bend as ByteWal import ./RestorePolicy.bend as RestorePolicy import ../StorageBytes.bend as StorageBytes import ../Wal.bend as Wal import ../coordinator/QueuePolicy.bend as QueuePolicy import ../hub_sha/sha256.bend as SHA import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
Types
type Error source · line 12 · raw
Data
Distinguishes malformed exchange data from integrity and resource failures.
InvalidFormatError
ResourceLimitError
InvalidOrderError
ChecksumMismatchError
CountMismatchError
type Decoded source · line 20 · raw
Type
Carries the verified logical records produced by restore validation.
Decoded@entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> Decoded
type Header source · line 24 · raw
Type
Carries the fixed header metadata shared by all restore paths.
Header@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @entry_count:U32 -> @block_count:U32 -> Header
type State source · line 28 · raw
Type
Tracks block traversal and the reverse-ordered decoded entries.
State@input:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @offset:Nat -> @entry_count:U32 -> @block_count:U32 -> @remaining_blocks:Nat -> @block_index:Nat -> @decoded_count:Nat -> @reversed:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> State
type BlockMeta source · line 34 · raw
Type
Retains the source slice and decoded entries for one validated block.
BlockMeta@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @offset:Nat -> @frame_offset:Nat -> @frame_length:Nat -> @record_count:Nat -> @block_length:Nat -> @entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> BlockMeta
type BlockHeader source · line 40 · raw
Type
Holds validated block-header fields while checksum and frame decoding run.
BlockHeader@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @offset:Nat -> @index:U32 -> @record_count:U32 -> @frame_length:U32 -> @block_length:Nat -> BlockHeader
type EntryBatch source · line 45 · raw
Type
Pairs decoded entries with their observed count.
EntryBatch@entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @count:Nat -> EntryBatch
Definitions
def equal source · line 49 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Bool)) -> Bool
Projects byte equality from the packed-byte comparison result.
def slice.result source · line 53 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes
def u32.field.is source · line 57 · raw
@result:Maybe<&2, U32> -> @expected:U32 -> Bool
def clone.pair source · line 62 · raw
@+len:U32 -> @copied:Pair(Array<U32>, Array<U32>) -> Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes)
def clone.split source · line 67 · raw
@bytes:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes)
def clone.triple.left source · line 72 · raw
@second:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @copies:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes))
def clone.triple.step source · line 79 · raw
@copies:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes))
def clone.triple source · line 84 · raw
@bytes:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes))
def bytes.size source · line 87 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, U32) -> U32
def magic source · line 92 · raw
@value:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes
Unwraps a fixed exchange-format marker.
def magic.header source · line 97 · raw
0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes
def block.magic source · line 103 · raw
0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes
def digest.matches source · line 106 · raw
@claimed:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Bool
def header.ready.block source · line 112 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Maybe<&2, U32>) -> @entry_count:U32 -> Result<&1, &1, Error, Header>
def header.entry_count.read source · line 119 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Maybe<&2, U32>) -> Result<&1, &1, Error, Header>
def header.block_count.checked source · line 126 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @valid:Bool -> Result<&1, &1, Error, Header>
def header.block_count source · line 131 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Maybe<&2, U32>) -> Result<&1, &1, Error, Header>
def header.entry_count.checked source · line 139 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @valid:Bool -> Result<&1, &1, Error, Header>
def header.entry_count source · line 144 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Maybe<&2, U32>) -> Result<&1, &1, Error, Header>
def header.version.checked source · line 152 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @valid:Bool -> Result<&1, &1, Error, Header>
def header.version source · line 157 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Maybe<&2, U32>) -> Result<&1, &1, Error, Header>
def header.magic.checked source · line 164 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @valid:Bool -> Result<&1, &1, Error, Header>
def header.marker source · line 169 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Result<&1, &1, Error, Header>
def header.parse source · line 174 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Result<&1, &1, Error, Header>
def block.checksum.lengths source · line 177 · raw
@lengths:Pair(U32, U32) -> @copies:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Bool
def block.checksum.copies.lengths source · line 188 · raw
@lengths:Pair(Nat, Nat) -> @copies:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Bool
def block.checksum.copies source · line 197 · raw
@block_length:U32 -> @copies:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Bool
def block.checksum.sized.validated source · line 204 · raw
@block:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @hash_length:U32 -> @valid:Bool -> Bool
def block.checksum.sized.measure source · line 214 · raw
@block:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @compare_length:U32 -> @hash_length:U32 -> @measured:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, U32) -> Bool
def block.checksum.sized.lengths source · line 225 · raw
@block:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @lengths:Pair(Nat, Nat) -> @measured:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, U32) -> Bool
def block.checksum.sized source · line 235 · raw
@block:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @block_length:U32 -> @measured:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, U32) -> Bool
def block.checksum.input.cloned source · line 243 · raw
@block_length:U32 -> @copies:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Bool
def block.checksum.input source · line 251 · raw
@block_length:U32 -> @block:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Bool
def mutations.entries.loop source · line 259 · raw
@fuel:Nat -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @reversed:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @count:Nat -> Result<&1, &1, Error, EntryBatch>
def mutations.entries source · line 279 · raw
@result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/Wal.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Batch> -> @count:U32 -> Result<&1, &1, Error, EntryBatch>
def empty.header.blocks source · line 366 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Maybe<&2, U32>) -> Bool
def empty.header.entries.checked source · line 370 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @valid:Bool -> Bool
def empty.header.entries source · line 375 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Maybe<&2, U32>) -> Bool
def empty.header.version.checked source · line 380 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @valid:Bool -> Bool
def empty.header.version source · line 385 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Maybe<&2, U32>) -> Bool
def empty.header.magic.checked source · line 390 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @valid:Bool -> Bool
def empty.header.magic source · line 395 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Bool
def empty.header.valid source · line 400 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Bool
def decode.empty source · line 403 · raw
@valid:Bool -> Result<&1, &1, Error, Decoded>
def decode.empty.header.checked source · line 427 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @header_valid:Bool -> Result<&1, &1, Error, Decoded>
def decode.empty.header.copies source · line 435 · raw
@copies:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Result<&1, &1, Error, Decoded>
def decode.empty.size.validated source · line 442 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @size_valid:Bool -> Result<&1, &1, Error, Decoded>
def decode.empty.size source · line 450 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @size:U32 -> Result<&1, &1, Error, Decoded>
def decode.length source · line 453 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, U32) -> Result<&1, &1, Error, Decoded>
def restore.block.frame.bounded source · line 457 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @+offset:Nat -> @index:U32 -> @+record_count:U32 -> @+frame_length:U32 -> @+block_length:Nat -> @valid:Bool -> Result<&1, &1, Error, BlockHeader>
def restore.block.frame.bounds source · line 471 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @+offset:Nat -> @index:U32 -> @record_count:U32 -> @+frame_length:U32 -> @+block_length:Nat -> @+input_size:U32 -> Result<&1, &1, Error, BlockHeader>
def restore.block.frame.limit source · line 483 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @+offset:Nat -> @index:U32 -> @record_count:U32 -> @+frame_length:U32 -> @+input_size:U32 -> @valid:Bool -> Result<&1, &1, Error, BlockHeader>
def restore.block.frame.length.checked source · line 498 · raw
@measured:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, U32) -> @+offset:Nat -> @index:U32 -> @record_count:U32 -> @+frame_length:U32 -> @valid:Bool -> Result<&1, &1, Error, BlockHeader>
def restore.block.frame.field source · line 511 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Maybe<&2, U32>) -> @+offset:Nat -> @index:U32 -> @record_count:U32 -> Result<&1, &1, Error, BlockHeader>
def restore.block.count.valid source · line 526 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @+offset:Nat -> @index:U32 -> @record_count:U32 -> @within_limit:Bool -> @empty:Bool -> Result<&1, &1, Error, BlockHeader>
def restore.block.count.field source · line 543 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Maybe<&2, U32>) -> @+offset:Nat -> @index:U32 -> Result<&1, &1, Error, BlockHeader>
def restore.block.index.checked source · line 555 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @+offset:Nat -> @index:U32 -> @valid:Bool -> Result<&1, &1, Error, BlockHeader>
def restore.block.index.field source · line 566 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Maybe<&2, U32>) -> @+offset:Nat -> @expected_index:U32 -> Result<&1, &1, Error, BlockHeader>
def restore.block.index.valid source · line 578 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Maybe<&2, U32>) -> @+offset:Nat -> @expected_index:U32 -> Result<&1, &1, Error, BlockHeader>
def restore.block.magic.valid source · line 584 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @+offset:Nat -> @expected_index:U32 -> @valid:Bool -> Result<&1, &1, Error, BlockHeader>
def restore.block.magic source · line 597 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @+offset:Nat -> @expected_index:U32 -> Result<&1, &1, Error, BlockHeader>
def restore.block.header source · line 607 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @+offset:Nat -> @expected_index:U32 -> Result<&1, &1, Error, BlockHeader>
def restore.block.batch.checked source · line 615 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @+offset:Nat -> @index:U32 -> @record_count:U32 -> @frame_length:U32 -> @+block_length:Nat -> @batch:EntryBatch -> @valid:Bool -> Result<&1, &1, Error, Pair(BlockHeader, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>)>
def restore.block.batch.measure source · line 634 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @+offset:Nat -> @index:U32 -> @+record_count:U32 -> @frame_length:U32 -> @+block_length:Nat -> @batch:EntryBatch -> Result<&1, &1, Error, Pair(BlockHeader, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>)>
def restore.block.frame.entries source · line 651 · raw
@header:BlockHeader -> @result:Result<&1, &1, Error, EntryBatch> -> Result<&1, &1, Error, Pair(BlockHeader, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>)>
def restore.block.frame.decoded source · line 664 · raw
@header:BlockHeader -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/Wal.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Batch> -> Result<&1, &1, Error, Pair(BlockHeader, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>)>
def restore.block.checksum.validated source · line 673 · raw
@header:BlockHeader -> @decoded:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/Wal.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Batch> -> @valid:Bool -> Result<&1, &1, Error, Pair(BlockHeader, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>)>
def restore.block.checksum.copies source · line 683 · raw
@+offset:Nat -> @index:U32 -> @record_count:U32 -> @+frame_length:U32 -> @+block_length:Nat -> @copies:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes)) -> Result<&1, &1, Error, Pair(BlockHeader, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>)>
def restore.block.checksum.valid source · line 703 · raw
@header:BlockHeader -> Result<&1, &1, Error, Pair(BlockHeader, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>)>
def restore.block.checked source · line 712 · raw
@result:Result<&1, &1, Error, Pair(BlockHeader, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>)> -> Result<&1, &1, Error, BlockMeta>
def restore.block.open.result source · line 725 · raw
@result:Result<&1, &1, Error, BlockHeader> -> Result<&1, &1, Error, BlockMeta>
def restore.block.open source · line 734 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @+offset:Nat -> @expected_index:U32 -> Result<&1, &1, Error, BlockMeta>
def restore.prepend.entries source · line 742 · raw
@entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @reversed:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>
def restore.finish.order source · line 751 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @+offset:Nat -> @+entry_count:U32 -> @+block_count:U32 -> @entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @ordered:Bool -> Result<&1, &1, Error, Decoded>
def restore.finish.size.valid source · line 791 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @+offset:Nat -> @entry_count:U32 -> @block_count:U32 -> @reversed:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @valid:Bool -> Result<&1, &1, Error, Decoded>
def restore.finish.count.valid source · line 806 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @+offset:Nat -> @entry_count:U32 -> @block_count:U32 -> @reversed:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @+size:U32 -> @valid:Bool -> Result<&1, &1, Error, Decoded>
def restore.finish source · line 822 · raw
@measured:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, U32) -> @+offset:Nat -> @+entry_count:U32 -> @+block_count:U32 -> @+decoded_count:Nat -> @reversed:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> Result<&1, &1, Error, Decoded>
def restore.loop source · line 836 · raw
@fuel:Nat -> @state:State -> @current:Result<&1, &1, Error, BlockMeta> -> Result<&1, &1, Error, Decoded>
def restore.loop.start source · line 885 · raw
@copies:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes)) -> @entry_count:U32 -> @+block_count:U32 -> Result<&1, &1, Error, Decoded>
def decode.header.blocks source · line 898 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @header:Header -> Result<&1, &1, Error, Decoded>
def decode.header.route source · line 903 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @header:Header -> @empty:Bool -> Result<&1, &1, Error, Decoded>
def decode.header.ready.count source · line 908 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @header_input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @entry_count:U32 -> @counts:Pair(Nat, Nat) -> Result<&1, &1, Error, Decoded>
def decode.header.ready source · line 920 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @header:Header -> Result<&1, &1, Error, Decoded>
def decode.header source · line 926 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @result:Result<&1, &1, Error, Header> -> Result<&1, &1, Error, Decoded>
def decode.copies source · line 931 · raw
@copies:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Result<&1, &1, Error, Decoded>
def decode source · line 937 · raw
@input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Result<&1, &1, Error, Decoded>
Validates a bounded exchange and decodes the currently supported block layout.