def frame

bend-kit-journal@0.3.1.0 · journal.bend:283

import bend-kit-journal@0.3.1.0/journal.bend as Journal
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import bend-kit-hash@0.3.0.2/hash.bend as Hash

283# The frame that appending p writes.
284def frame(p: Bytes.Bytes) -> Bytes.Bytes:
285  Bytes.Bytes{+len, buf} = p
286  frame.of(len, Hash.crc32(Bytes.Bytes{len, buf}))

Uses (3)

Used by (1)