def file.reads.of
import snap@1.4.0.0/src/file.bend as Fileimport Base
69# the reads the size the host reported allows
70def file.reads.of(res: Result<&1, &1, U32 & String, U32>) -> Nat:
71 match res:
72 case Fail{_e}:
73 file.unsized()
74 case Done{bytes}:
75 file.reads(bytes)