SAGA API  v9.5
api_memory.cpp File Reference
#include "api_core.h"

Go to the source code of this file.

Functions

void * SG_Malloc (size_t size)
 
void * SG_Calloc (size_t num, size_t size)
 
void * SG_Realloc (void *memblock, size_t new_size)
 
void SG_Free (void *memblock)
 
void SG_Swap_Bytes (void *Buffer, int nBytes)
 
int SG_Mem_Get_Int (const char *Buffer, bool bSwapBytes)
 
void SG_Mem_Set_Int (char *Buffer, int Value, bool bSwapBytes)
 
double SG_Mem_Get_Double (const char *Buffer, bool bSwapBytes)
 
void SG_Mem_Set_Double (char *Buffer, double Value, bool bSwapBytes)
 
BYTE SG_Hex_to_Byte (const SG_Char Hex)
 

Function Documentation

◆ SG_Calloc()

void* SG_Calloc ( size_t  num,
size_t  size 
)

◆ SG_Free()

◆ SG_Hex_to_Byte()

BYTE SG_Hex_to_Byte ( const SG_Char  Hex)

Definition at line 936 of file api_memory.cpp.

Referenced by CSG_Bytes::fromHexString().

◆ SG_Malloc()

◆ SG_Mem_Get_Double()

double SG_Mem_Get_Double ( const char *  Buffer,
bool  bSwapBytes 
)

Definition at line 200 of file api_memory.cpp.

References SG_Swap_Bytes().

◆ SG_Mem_Get_Int()

int SG_Mem_Get_Int ( const char *  Buffer,
bool  bSwapBytes 
)

Definition at line 177 of file api_memory.cpp.

References SG_Swap_Bytes().

◆ SG_Mem_Set_Double()

void SG_Mem_Set_Double ( char *  Buffer,
double  Value,
bool  bSwapBytes 
)

Definition at line 212 of file api_memory.cpp.

References SG_Swap_Bytes().

◆ SG_Mem_Set_Int()

void SG_Mem_Set_Int ( char *  Buffer,
int  Value,
bool  bSwapBytes 
)

Definition at line 189 of file api_memory.cpp.

References SG_Swap_Bytes().

◆ SG_Realloc()

◆ SG_Swap_Bytes()