wwHeap.GetBytes
less than 1 minute to read

Retrieves a number of characters or bytes from the allocated heap at a given position. The position is 1 based.

If the highest level of performance is needed to retrieve data, it's considerably more efficient to call the contained SYS(2600) function directly from your calling code.

foxpro
lcData = SYS(2600, loHeap.nBaseAddress -1 + lnOffSet, lnCount)
o.wwHeap.GetBytes(lnOffSet, lnCount)

Return Value

returns string or byte data. On error you get an exception (if overrunning the buffer or accessing invalid memory)

Parameters

lnOffSet
1 based offset into the buffer from which to start reading the characters or data

lnCount
The number of characters to return.
Default: 1


See also:

Class wwHeap

© West Wind Technologies, 1996-2025 • Updated: 01/14/25
Comment or report problem with topic