File.file.reads: def of snap@1.4.0.0 Import: import snap@1.4.0.0/src/file.bend as File Lines 64-67 of snap@1.4.0.0/src/file.bend: https://jend.leeeet.dev/read.txt?path=snap@1.4.0.0/src/file.bend&start_line=64&end_line=67 import Base # the reads a file of this many bytes takes: one for every 64 KiB, one for # the part past the last whole 64 KiB, and one to spare for a short read def file.reads(+bytes: U32) -> Nat: file.reads.given(U32.is_zero(bytes), bytes) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_zero https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/src/file.bend&name=file.reads.given