def decode.available

mylsm-lsm-store@0.6.0.1 · src/coordinator/Protocol.bend:532

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

532def decode.available(
533  input: Bytes.Bytes,
534  +size: U32,
535  max_payload_bytes: Nat,
536  enough_header: Bool
537) -> FrameDecision:
538  match enough_header:
539    case False{}: NeedMore{}
540    case True{}:
541      decode.magic.slice(Bytes.slice(input, 0, 4), size, max_payload_bytes)

Uses (7)

Used by (1)