def cells_of

bendtorch-load@1.3.0.0 · main.bend:206

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

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

Uses (11)

Used by (1)