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.
void Memory__free (Memory memory)
 Releases the storage associated with *memory*.

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 Jun 6 2019 18:08:04