Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
»

mmap

io.file.open.mmap

(R 
type
, offset i64, size i64, code Function R)
 => 
outcome R
[Contains abstract features]
install mmap effect an run code

note: the offset must be a multiple of the pagesize which usually is 4096, windows 65536?
note: offset+size must not exceed size of file

example usage:
_ := io.file.use unit "/some_file" io.file.mode.append ()->
io.file.open.mmap (i64 0) (i64 100) ()->
io.file.open.mmap[99] := 42

Type Parameters

0.094dev (2025-06-18 15:08:51 GIT hash 89cffc23ae669b0898a5564fefbf793fcb8e5ca7 built by fridi@fzen)