def parse.header.words

mylsm-lsm-store@0.6.0.1 · src/ByteSstFile.bend:992

import mylsm-lsm-store@0.6.0.1/src/ByteSstFile.bend as ByteSstFile
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

992def parse.header.words(
993  pair: Bytes.Cursor & Maybe<&2, U32>,
994  size: U32
995) -> Result<&1, &1, Error, PayloadWords>:
996  match pair:
997    case (cursor, Some{1297697875}):
998      parse.header.magic.second(Bytes.Cursor.u32be(cursor), size)
999    case _:
1000      Fail{Malformed{}}

Uses (13)

Used by (1)