def Utf8.scan.byte.step
mylsm-lsm-store@0.6.0.1 · mylsm.bend:2288
import mylsm-lsm-store@0.6.0.1/mylsm.bend as Mylsm
import Base
import mylsm-lsm-store@0.6.0.1/src/scan/Utf8CursorPolicy.bend as Utf8CursorPolicy
import mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend as Utf8Codec
2288def Utf8.scan.byte.step(step: Bytes.StreamStep) -> Utf8.ScanStep:
2289 match step:
2290 case StreamItem{key, value, cursor}:
2291 Utf8.scan.item.result(cursor,
2292 Utf8Codec.to_string_strict(key), Utf8Codec.to_string_strict(value))
2293 case StreamSkip{cursor}:
2294 Utf8ScanSkip{Utf8Cursor{cursor, Utf8CursorActive{}}}
2295 case StreamEnd{cursor}:
2296 Utf8ScanEnd{Utf8Cursor{cursor, Utf8CursorEnded{}}}
2297 case StreamFailure{error, cursor}:
2298 Utf8.scan.item.failed(cursor, Utf8Failure{error}, Utf8CursorPolicy.ReaderFailure{})