SAGA API
v9.6
|
#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) |
void* SG_Calloc | ( | size_t | num, |
size_t | size | ||
) |
Definition at line 71 of file api_memory.cpp.
Referenced by CSG_Grid_Radius::Create(), CSG_Formula::CSG_Formula(), and CSG_Table_DBase::Open_Write().
void SG_Free | ( | void * | memblock | ) |
Definition at line 83 of file api_memory.cpp.
Referenced by CSG_TIN::_Destroy_Edges(), CSG_TIN::_Destroy_Triangles(), CSG_TIN::_Triangulate(), CSG_PriorityQueue::Add(), CSG_Rects::Clear(), CSG_Rects_Int::Clear(), CSG_Parameters::Del_Parameters(), CSG_PointCloud::Del_Points(), CSG_PointCloud::Del_Selection(), CSG_Buffer::Destroy(), CSG_Bytes::Destroy(), CSG_Bytes_Array::Destroy(), CSG_Colors::Destroy(), CSG_Translator::Destroy(), CSG_Grid_Pyramid::Destroy(), CSG_Index::Destroy(), CSG_PriorityQueue::Destroy(), CSG_Matrix::Destroy(), CSG_Grid_Radius::Destroy(), CSG_PointCloud::Destroy(), CSG_Shape_Part::Destroy(), CSG_Table::Destroy(), CSG_Tool_Library_Manager::Destroy(), CSG_Colors::Load(), CSG_Formula::~CSG_Formula(), CSG_Parameter::~CSG_Parameter(), and CSG_Table_Record::~CSG_Table_Record().
BYTE SG_Hex_to_Byte | ( | const SG_Char | Hex | ) |
Definition at line 936 of file api_memory.cpp.
Referenced by CSG_Bytes::fromHexString().
void* SG_Malloc | ( | size_t | size | ) |
Definition at line 65 of file api_memory.cpp.
Referenced by CSG_TIN::_Triangulate(), CSG_Translator::Create(), CSG_PriorityQueue::Create(), CSG_Matrix::Create(), CSG_Table_Record::CSG_Table_Record(), CSG_Colors::Load(), CSG_String::to_ASCII(), CSG_String::to_MBChar(), and CSG_String::to_UTF8().
double SG_Mem_Get_Double | ( | const char * | Buffer, |
bool | bSwapBytes | ||
) |
Definition at line 200 of file api_memory.cpp.
References SG_Swap_Bytes().
int SG_Mem_Get_Int | ( | const char * | Buffer, |
bool | bSwapBytes | ||
) |
Definition at line 177 of file api_memory.cpp.
References SG_Swap_Bytes().
void SG_Mem_Set_Double | ( | char * | Buffer, |
double | Value, | ||
bool | bSwapBytes | ||
) |
Definition at line 212 of file api_memory.cpp.
References SG_Swap_Bytes().
void SG_Mem_Set_Int | ( | char * | Buffer, |
int | Value, | ||
bool | bSwapBytes | ||
) |
Definition at line 189 of file api_memory.cpp.
References SG_Swap_Bytes().
void* SG_Realloc | ( | void * | memblock, |
size_t | new_size | ||
) |
Definition at line 77 of file api_memory.cpp.
Referenced by CSG_TIN::_Add_Edge(), CSG_Table_Record::_Add_Field(), CSG_Shape_Points::_Add_Part(), CSG_TIN::_Add_Triangle(), CSG_Shape_Part::_Alloc_Memory(), CSG_Table_Record::_Del_Field(), CSG_Parameter_Table_Fields::_Set_Value(), CSG_TIN::_Triangulate(), CSG_Rects::Add(), CSG_Rects_Int::Add(), CSG_Bytes_Array::Add(), CSG_Classifier_Supervised::Add_Class(), CSG_Table::Add_Field(), CSG_Tool_Library_Manager::Add_Library(), CSG_Matrix::Add_Rows(), CSG_Translator::Create(), CSG_Colors::Create(), CSG_PointCloud::Del_Field(), CSG_Table::Del_Field(), CSG_Tool_Library_Manager::Del_Library(), CSG_Parameters::Del_Parameter(), CSG_Shape_Points::Del_Part(), CSG_Matrix::Del_Rows(), CSG_Classifier_Supervised::Load(), CSG_Array::Set_Array(), CSG_Colors::Set_Count(), CSG_Colors::Set_Default(), CSG_Buffer::Set_Size(), and CSG_Classifier_Supervised::Train_Add_Sample().
void SG_Swap_Bytes | ( | void * | Buffer, |
int | nBytes | ||
) |
Definition at line 154 of file api_memory.cpp.
Referenced by CSG_Bytes::Add(), CSG_Bytes::asDouble(), CSG_Buffer::asDouble(), CSG_Bytes::asDWord(), CSG_Bytes::asFloat(), CSG_Buffer::asFloat(), CSG_Bytes::asInt(), CSG_Buffer::asInt(), CSG_Bytes::asShort(), CSG_Buffer::asShort(), CSG_Bytes::asWord(), CSG_File::Read_Double(), CSG_File::Read_Int(), CSG_Buffer::Set_Value(), SG_Mem_Get_Double(), SG_Mem_Get_Int(), SG_Mem_Set_Double(), SG_Mem_Set_Int(), CSG_File::Write_Double(), and CSG_File::Write_Int().