JCL Help:TJclCustomFileMapping.Add

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Create a new view and adds it to the list.


Pascal

 public function Add(const Access: Cardinal; const Count: Cardinal; const Offset: Int64): Integer;


Parameters

Parameters Description
const Access: Cardinal Specifies the access for the view. See the Win32 help file or the Platform SDK under MapViewOfFile for more information.
const Count: Cardinal Number of bytes to map. If you specify 0 the entire file is mapped.
const Offset: Int64 The Offset, in bytes, into the file from which to begin the mapping. The supplied offset is implicitly rounded towards a multiple of the systems allocation granularity. See the RoundOffsetView property for the details.


Return Value

The Index into the Views array of the newly created View object.


Description

The Add method creates a new TJclFileMappingView object and adds it to the internal Views list.


See Also

AddAt


About

Donator

Wim De Cleen


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page