def utf8.scan.fin

mylsm-lsm-store@0.6.0.1 · src/StorageBytes.bend:53

import mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend as StorageBytes
import Base

53def utf8.scan.fin(state: Utf8State) -> Result<&1, &1, U32 & String, String>:
54  match state:
55    case Utf8State{need, _, _, _, out, True{}}:
56      utf8.scan.fin.done(out, U32.is_eq(need, 0))
57    case Utf8State{_, _, _, _, _, False{}}:
58      Fail{(1, "invalid UTF-8")}

Uses (9)

Used by (2)