ALLOCSIZE

ALLOCSIZE returns a FIXED BIN(31,0) value giving the amount of storage allocated with a specified pointer. To use this built-in function, you must also specify the CHECK(STORAGE) compile-time option.

Read syntax diagramSkip visual syntax diagram
>>-ALLOCSIZE(p)------------------------------------------------><

p
Pointer expression.

ALLOCSIZE returns 0 if the pointer does not point to the start of a piece of allocated storage.

Note that the pointer passed to ALLOCSIZE is "rounded down" to the nearest doubleword and that rounded value is compared against all allocated addresses when similarly rounded down.






Published: 23 December 2018