def Pct.hex.go

bend-kube-runtime@0.2.0.0 · src/proxy.bend:190

import bend-kube-runtime@0.2.0.0/src/proxy.bend as Proxy
import Base

190def Pct.hex.go(+c: U32, d: Bool, up: Bool, low: Bool) -> U32:
191  match d up low:
192    case True{} _ _:
193      U32.sub(c, 48)
194    case _ True{} _:
195      U32.sub(c, 55)
196    case _ _ True{}:
197      U32.sub(c, 87)
198    case _ _ _:
199      16

Uses (3)

Used by (1)