def blob.nil

bend-kit-redis@0.3.0.0 · redis.bend:489

import bend-kit-redis@0.3.0.0/redis.bend as Redis
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

489# $-1 is RESP2's null bulk string; ! and = have no null form.
490def blob.nil(nil: Bool, +kind: U32, +n: U32, +next: U32, stack: List<&1, Frame>, b: Bytes.Bytes) -> Bytes.Bytes & St:
491  match nil:
492    case True{}:
493      (b, null.st(U32.is_eq(kind, 0), next, stack))
494    case False{}:
495      blob.bad(U32.is_eq(n, 4294967294), kind, n, next, stack, b)

Uses (11)

Used by (1)