def cells_of

bendtorch-load@1.2.0.0 · main.bend:204

import bendtorch-load@1.2.0.0/main.bend as BendtorchLoad
import Base

204# the number of F32 cells in a file (a packed-moment checkpoint carries its own sizes: its length is the file's)
205def cells_of(+path: String) -> IO(U32):
206  do IO<U32>:
207    f : File <- IO.try(File, File.open(path, "r"))
208    rr : File & Result<&1, &1, U32 & String, U32> <- File.size(f)
209    cells_done(rr)

Uses (11)

Used by (1)