Memory mapped file access.
mmap | Memory mapped file access. |
Enumerations | |
Mode | Mode to use when opening a file. |
Types | |
MemoryFile | Opaque type representing a memory mapped file. |
Exceptions | |
MmapException | General exceptions for mmap module. |
MmapException. | An invalid (NIL) file was used. |
OpenFileException | An error occured while trying to open the file. |
Functions | |
close | Close a memory mapped file. |
open | Open a memory mapped file. |
read | Read bytes from a memory mapped file at the given offset. |
size | Return the size of a memory mapped file. |
write | Write bytes to a memory mapped file at the given offset. |
Close a memory mapped file.
DECLARE NATIVE FUNCTION close( f: MemoryFile )
Open a memory mapped file.
DECLARE NATIVE FUNCTION open( name: String, mode: Mode ): MemoryFile
Read bytes from a memory mapped file at the given offset.
DECLARE NATIVE FUNCTION read( f: MemoryFile, offset: Number, count: Number ): Bytes
Return the size of a memory mapped file.
DECLARE NATIVE FUNCTION size( f: MemoryFile ): Number
Write bytes to a memory mapped file at the given offset.
DECLARE NATIVE FUNCTION write( f: MemoryFile, offset: Number, data: Bytes )