def unb64.if

bend-kit-bytes@0.3.3.0 · bytes.bend:752

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

752def unb64.if(ok: Bool, +s: String, +n: U32, +pads: U32) -> Maybe<&1, Bytes>:
753  match ok:
754    case True{}:
755      +len = ((n >> 2n) * 3 - pads : U32)
756      decoded(len, unb64.go(s, alloc(len), 0, 0, True{}, len, (n - pads : U32)))
757    case False{}:
758      None{}

Uses (11)

Used by (1)