MAP_FILE_FOR_READ_WRITE@

Platform

Win32, x64

Purpose

To map a file to memory.

Syntax

INTEGER(7) FUNCTION MAP_FILE_FOR_READ_WRITE@( FILENAME, SIZE )
CHARACTER(*) FILENAME
INTEGER SIZE

Description

See MAP_FILE_FOR_READING@.

In MAP_FILE_FOR_READ_WRITE@ the variable SIZE can be input as zero, in which case it will be returned as the original size of the file. Otherwise, the mapped memory region will be set to SIZE bytes and the file will be extended if necessary. If the file does not exist it will be created. In this routine the contents of the file can be changed.

Return value

Returns the starting address of the mapped view or zero on failure.

See also

MAP_FILE_FOR_READING@, UNMAP_FILE@

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited