def size

bendtorch-load@1.3.0.0 · main.bend:167

import bendtorch-load@1.3.0.0/main.bend as BendtorchLoad
import Base
import bend-ml-binary-read@0.2.0.0/main.bend as R

167# A file's size in bytes, at any size
168def size(+path: String) -> IO(W64):
169  do IO<W64>:
170    f : File <- IO.try(File, File.open(path, "r"))
171    rr : File & Result<&1, &1, U32 & String, U32 & U32> <- R.size64(f)
172    size_done(rr)

Uses (12)

Used by (0)

No other definition uses this definition.