def blob.val

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

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

452def blob.val(+kind: U32, +n: U32, +next: U32, stack: List<&1, Frame>, b: Bytes.Bytes) -> Bytes.Bytes & St:
453  match kind:
454    case 2:
455      verb.len(U32.is_le(4, n), n, next, stack, b)
456    case _:
457      blob.done(kind, (next + n + 2 : U32), stack, Bytes.slice(b, next, n))

Uses (14)

Used by (1)