Functions
Memory.cpp File Reference
#include <assert.h>
#include <stdlib.h>
#include "File.hpp"
#include "Memory.hpp"
Include dependency graph for Memory.cpp:

Go to the source code of this file.

Functions

Memory Memory__allocate (unsigned int bytes, String_Const from)
 Allocates bytes of memory and returns a pointer to it. More...
 
void Memory__free (Memory memory)
 Releases the storage associated with memory. More...
 

Function Documentation

Memory Memory__allocate ( unsigned int  bytes,
String_Const  from 
)

Allocates bytes of memory and returns a pointer to it.

Parameters
bytesis the number of bytes to allocate.
fromis a debugging string.
Returns
a pointer to the allocated memory chunk.

Memory__allocate() will allocated and return a pointer to a chunk of bytes memory.

Definition at line 22 of file Memory.cpp.

void Memory__free ( Memory  memory)

Releases the storage associated with memory.

Parameters
memoryto release.

Memory__free() will release the storage associated with memory.

Definition at line 60 of file Memory.cpp.



fiducial_lib
Author(s): Wayne Gramlich
autogenerated on Thu Dec 28 2017 04:06:53