Home • ECDL • Algoritmi • Java • Basi di dati • Seconda prova • Eccetera • Cerca nel sito

Memoria dinamica: sintassi

Precedente
SUPERIORE
Successiva
@
Addr
Addr(x): pointer;Returns the address of a specified object
SegSeg(x): Word;Returns the segment of a specified object
OfsOfs(x): Word;Returns the offset of a specified object
PtrPtr(Seg, Ofs: Word): pointer;Converts a segment base and an offset address to a pointer-type value
CsegCSeg: Word;Returns the current value of the CS register
DsegDSeg: Word;Returns the current value of the DS register
SsegSSeg: Word;Returns the current value of the SS register
SPtrSPtr: Word;Returns the current value of the SP register
MemAvailMemAvail: Longint;Returns sum of all free blocks in the heap
MaxAvailMaxAvail: Longint;Returns the size of the largest contiguous free block in the heapThis block corresponds to the size of the largest dynamic variable that can be allocated at that time
NewNew(var p: pointer);Creates a new dynamic variable, sets a pointer variable to point to it
DisposeDispose(var p: pointer);Disposes a dynamic variable
GetMemGetMem(var p: pointer; size: Word);Creates a dynamic variableCreates a new dynamic variable of the specified size and puts the address of the block in a pointer variable
FreeMemFreeMem(var p: pointer; size: Word);Disposes a dynamic variable of a given size
MarkMark(var p: pointer);Records the state of the heap in a pointer variable
ReleaseRelease(var p: pointer);Returns the heap to a given state

Memoria dinamica: sintassi - ApPuNtIdIuNiNfOrMaTiCo

Home • ECDL • Algoritmi • Java • Basi di dati • Seconda prova • Eccetera • Cerca nel sito

Precedente
SUPERIORE
Successiva