Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

mmap

fuzion.sys.fileio.mmap

§mmap(fd i64, offset i64, size i64, res Any)
 => 
Any
:
Any 

memory map a file

res[0]: 0 on success, -1 on error

return: allocated memory (same as fuzion.sys.internal_array_init.alloc)

note: offset+size must not exceed file size.
note: returning allocated memory - instead of error code - simplifies handling in DFA.