IMemoryManager (ITF) ¶ INTERFACE IMemoryManager Methods: Alloc Free Structure: Alloc (Method) Free (Method)
IMemoryManager.Alloc (METH) ¶ METHOD Alloc : POINTER TO DWORD InOut: Scope Name Type Return Alloc POINTER TO DWORD Input dwSize DWORD
IMemoryManager.Free (METH) ¶ METHOD Free : BOOL InOut: Scope Name Type Return Free BOOL Input pBlock POINTER TO DWORD
LMMBlock (STRUCT) ¶ TYPE LMMBlock : STRUCT InOut: Name Type Initial Comment pPreviousBlock POINTER TO LMMBlock dwFlags DWORD 0 indicate if block is free, etc. dwSize DWORD 0 the size of this block (including dwFlags and dwSize) dwBuffer DWORD 0
LinearMemoryManager (FB) ¶ FUNCTION_BLOCK LinearMemoryManager IMPLEMENTS IMemoryManager Methods: Alloc FB_Exit FB_Init FindFirstFreeBlock Free GetBlockFromBuffer GetNextBlock GetNextFreeBlock GetPreviousBlock Initialize MergeBlockWithNextBlock Reset prvAssert prvInitBuffer Structure: Alloc (Method) FB_Exit (Method) FB_Init (Method) FindFirstFreeBlock (Method) Free (Method) GetBlockFromBuffer (Method) GetNextBlock (Method) GetNextFreeBlock (Method) GetPreviousBlock (Method) Initialize (Method) MergeBlockWithNextBlock (Method) Reset (Method) prvAssert (Method) prvInitBuffer (Method)
LinearMemoryManager.Alloc (METH) ¶ METHOD Alloc : POINTER TO DWORD InOut: Scope Name Type Return Alloc POINTER TO DWORD Input dwSize DWORD
LinearMemoryManager.FB_Exit (METH) ¶ METHOD FB_Exit : BOOL InOut: Scope Name Type Return FB_Exit BOOL Input bInCopyCode BOOL
LinearMemoryManager.FB_Init (METH) ¶ METHOD FB_Init : BOOL InOut: Scope Name Type Comment Return FB_Init BOOL Input bInitRetains BOOL bInCopyCode BOOL pBuffer POINTER TO DWORD pointer to a memory area (the buffer) dwBufferSize DWORD the size of the buffer in bytes
LinearMemoryManager.FindFirstFreeBlock (METH) ¶ METHOD FindFirstFreeBlock : POINTER TO LMMBlock InOut: Scope Name Type Return FindFirstFreeBlock POINTER TO LMMBlock Input dwSize DWORD
LinearMemoryManager.Free (METH) ¶ METHOD Free : BOOL InOut: Scope Name Type Return Free BOOL Input pBlock POINTER TO DWORD