JCL Help:RoundToAllocGranularityPtr
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: RoundToAllocGranularityPtr Function
Search in JCL Help
Search in all projects
Summary
Rounds an address to an allocation boundary.
Pascal
procedure RoundToAllocGranularityPtr(var Value: Pointer; Up: Boolean);
Parameters
Parameters | Description |
var Value: Pointer | The address to adjust. |
Up: Boolean | If True the function rounds the address up to the next multiple of the allocation granularity, if False it rounds the address down to the previous multiple of the allocation granularity. |
Description
Some Win32 API routines that take pointer parameters require that the specified address is a multiple of the allocation granularity. On current Intel platforms (x86) this is 64K. RoundToAllocGranularityPtr rounds the given 32 bit address to a system defined allocation granularity boundary. You can have the function round upwards or downwards by specifying True or False for the Up parameter respectively. This function also exists for 64 bit pointers.
About
Unit
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