def frame
import bend-kit-journal@0.3.1.0/journal.bend as Journalimport 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}))