def read_bytes.wrap

mylsm-lsm-store@0.6.0.1 · src/Fs.bend:170

import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as StorageBytes

170def read_bytes.wrap(
171  result: Result<&1, &1, U32 & String, U32 & Array<U32>>
172) ->
173  Result<&1, &1, U32 & String, StorageBytes.Bytes>:
174  match result:
175    case Fail{err}:
176      Fail{err}
177    case Done{(len, words)}:
178      Done{StorageBytes.Bytes{len, words}}

Uses (7)

Used by (1)