Unit 'Exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

TypeOfMem

Determine attributes of a given memory address

Declaration

Source position: exec.pas line 1300

function TypeOfMem(

  const Address: Pointer

):LongWord;

Arguments

Address

  

A memory address

Function result

A long word of memory attribute flags. If the address is not in known RAM, zero is returned.

Description

Given a RAM memory address, search the system memory lists and return its memory attributes. The memory attributes are similar to those specified when the memory was first allocated: (eg. MEMF_*)

If the address is not in known-space, a zero will be returned. (Anything that is not RAM, like the ROM or expansion area, will return zero. Also the first few bytes of a memory area are used up by the MemHeader.)


Documentation generated on: 2021-07-30