JCL Help:GetAndFillMem

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Allocates memory and fills it with the specified value.


Pascal

 procedure GetAndFillMem(var P: Pointer; const Size: Integer; const Value: Byte);


Parameters

Parameters Description
var P: Pointer Receives a pointer to the allocated memory block.
const Size: Integer Size, in bytes, of the block of memory to allocate.
const Value: Byte Value with which to fill the memory block.


Description

GetAndFillMem allocates a block of memory from the heap of the specified size and fills each byte in that block with the specified value.


About

Unit

JclSysUtils


Donator

Marcel van Brakel


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