JCL Help:TJclCustomFileMapping.AddAt

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Creates a new view and adds it to the list.


Pascal

 public function AddAt(const Access: Cardinal; const Count: Cardinal; const Offset: Int64; const Address: Pointer): 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.
const Address: Pointer Address at which the view should be mapped. The value is rounded to a multiple of the system 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 AddAt method creates a new TJclFileMappingView object and adds it to the internal Views list. The difference between Add and this method is that you can specify a base address at which the view must be mapped. Note however that the supplied Address is implicitly rounded towards a multiple of the systems allocation granularity and if the system cannot map the view at the resulting address, it won't map at all!


See Also

Add


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