SAGA API  v9.6
CSG_Bytes Class Reference

#include <api_core.h>

Public Member Functions

 CSG_Bytes (void)
 
bool Create (void)
 
 CSG_Bytes (const CSG_Bytes &Bytes)
 
bool Create (const CSG_Bytes &Bytes)
 
 CSG_Bytes (const BYTE *Bytes, int nBytes)
 
bool Create (const BYTE *Bytes, int nBytes)
 
virtual ~CSG_Bytes (void)
 
bool Destroy (void)
 
bool Clear (void)
 
void Rewind (void)
 
bool is_EOF (void)
 
int Get_Count (void) const
 
BYTE * Get_Bytes (void) const
 
CSG_Bytes Get_Bytes (int i) const
 
CSG_Bytes operator+ (int i) const
 
BYTE Get_Byte (int i) const
 
BYTE operator[] (int i) const
 
bool Assign (const CSG_Bytes &Bytes)
 
CSG_Bytesoperator= (const CSG_Bytes &Bytes)
 
bool Add (const CSG_Bytes &Bytes)
 
CSG_Bytesoperator+= (const CSG_Bytes &Bytes)
 
bool Add (void *Bytes, int nBytes, bool bSwapBytes)
 
bool Add (BYTE Value)
 
CSG_Bytesoperator+= (BYTE Value)
 
bool Add (char Value)
 
CSG_Bytesoperator+= (char Value)
 
bool Add (short Value, bool bSwapBytes=false)
 
CSG_Bytesoperator+= (short Value)
 
bool Add (WORD Value, bool bSwapBytes=false)
 
CSG_Bytesoperator+= (WORD Value)
 
bool Add (int Value, bool bSwapBytes=false)
 
CSG_Bytesoperator+= (int Value)
 
bool Add (DWORD Value, bool bSwapBytes=false)
 
CSG_Bytesoperator+= (DWORD Value)
 
bool Add (float Value, bool bSwapBytes=false)
 
CSG_Bytesoperator+= (float Value)
 
bool Add (double Value, bool bSwapBytes=false)
 
CSG_Bytesoperator+= (double Value)
 
BYTE asByte (int i) const
 
char asChar (int i) const
 
short asShort (int i, bool bSwapBytes=false) const
 
WORD asWord (int i, bool bSwapBytes=false) const
 
int asInt (int i, bool bSwapBytes=false) const
 
DWORD asDWord (int i, bool bSwapBytes=false) const
 
float asFloat (int i, bool bSwapBytes=false) const
 
double asDouble (int i, bool bSwapBytes=false) const
 
BYTE Read_Byte (void)
 
char Read_Char (void)
 
short Read_Short (bool bSwapBytes=false)
 
WORD Read_Word (bool bSwapBytes=false)
 
int Read_Int (bool bSwapBytes=false)
 
DWORD Read_DWord (bool bSwapBytes=false)
 
float Read_Float (bool bSwapBytes=false)
 
double Read_Double (bool bSwapBytes=false)
 
CSG_String toHexString (void) const
 
bool fromHexString (const CSG_String &HexString)
 

Detailed Description

Definition at line 811 of file api_core.h.

Constructor & Destructor Documentation

◆ CSG_Bytes() [1/3]

CSG_Bytes::CSG_Bytes ( void  )

Definition at line 775 of file api_memory.cpp.

◆ CSG_Bytes() [2/3]

CSG_Bytes::CSG_Bytes ( const CSG_Bytes Bytes)

Definition at line 790 of file api_memory.cpp.

References Create().

◆ CSG_Bytes() [3/3]

CSG_Bytes::CSG_Bytes ( const BYTE *  Bytes,
int  nBytes 
)

Definition at line 806 of file api_memory.cpp.

References Create().

◆ ~CSG_Bytes()

CSG_Bytes::~CSG_Bytes ( void  )
virtual

Definition at line 824 of file api_memory.cpp.

References Destroy().

Member Function Documentation

◆ Add() [1/10]

bool CSG_Bytes::Add ( BYTE  Value)
inline

Definition at line 848 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [2/10]

bool CSG_Bytes::Add ( char  Value)
inline

Definition at line 850 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [3/10]

bool CSG_Bytes::Add ( const CSG_Bytes Bytes)

Definition at line 905 of file api_memory.cpp.

Referenced by Create(), and fromHexString().

◆ Add() [4/10]

bool CSG_Bytes::Add ( double  Value,
bool  bSwapBytes = false 
)
inline

Definition at line 862 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [5/10]

bool CSG_Bytes::Add ( DWORD  Value,
bool  bSwapBytes = false 
)
inline

Definition at line 858 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [6/10]

bool CSG_Bytes::Add ( float  Value,
bool  bSwapBytes = false 
)
inline

Definition at line 860 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [7/10]

bool CSG_Bytes::Add ( int  Value,
bool  bSwapBytes = false 
)
inline

Definition at line 856 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [8/10]

bool CSG_Bytes::Add ( short  Value,
bool  bSwapBytes = false 
)
inline

Definition at line 852 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [9/10]

bool CSG_Bytes::Add ( void *  Bytes,
int  nBytes,
bool  bSwapBytes 
)

Definition at line 911 of file api_memory.cpp.

References SG_Swap_Bytes().

◆ Add() [10/10]

bool CSG_Bytes::Add ( WORD  Value,
bool  bSwapBytes = false 
)
inline

Definition at line 854 of file api_core.h.

References Add().

Referenced by Add().

◆ asByte()

BYTE CSG_Bytes::asByte ( int  i) const
inline

Definition at line 865 of file api_core.h.

◆ asChar()

char CSG_Bytes::asChar ( int  i) const
inline

Definition at line 866 of file api_core.h.

◆ asDouble()

double CSG_Bytes::asDouble ( int  i,
bool  bSwapBytes = false 
) const
inline

Definition at line 872 of file api_core.h.

References SG_Swap_Bytes().

◆ asDWord()

DWORD CSG_Bytes::asDWord ( int  i,
bool  bSwapBytes = false 
) const
inline

Definition at line 870 of file api_core.h.

References SG_Swap_Bytes().

◆ asFloat()

float CSG_Bytes::asFloat ( int  i,
bool  bSwapBytes = false 
) const
inline

Definition at line 871 of file api_core.h.

References SG_Swap_Bytes().

◆ asInt()

int CSG_Bytes::asInt ( int  i,
bool  bSwapBytes = false 
) const
inline

Definition at line 869 of file api_core.h.

References SG_Swap_Bytes().

◆ asShort()

short CSG_Bytes::asShort ( int  i,
bool  bSwapBytes = false 
) const
inline

Definition at line 867 of file api_core.h.

References SG_Swap_Bytes().

◆ Assign()

bool CSG_Bytes::Assign ( const CSG_Bytes Bytes)

Definition at line 885 of file api_memory.cpp.

References Destroy().

Referenced by Create().

◆ asWord()

WORD CSG_Bytes::asWord ( int  i,
bool  bSwapBytes = false 
) const
inline

Definition at line 868 of file api_core.h.

References SG_Swap_Bytes().

◆ Clear()

bool CSG_Bytes::Clear ( void  )

Definition at line 844 of file api_memory.cpp.

Referenced by CSG_HTTP::Request(), and CSG_Grid_OGIS_Converter::to_WKBinary().

◆ Create() [1/3]

bool CSG_Bytes::Create ( const BYTE *  Bytes,
int  nBytes 
)

Definition at line 816 of file api_memory.cpp.

References Add(), and Destroy().

◆ Create() [2/3]

bool CSG_Bytes::Create ( const CSG_Bytes Bytes)

Definition at line 800 of file api_memory.cpp.

References Assign().

◆ Create() [3/3]

bool CSG_Bytes::Create ( void  )

Definition at line 784 of file api_memory.cpp.

References Destroy().

Referenced by CSG_Bytes(), and CSG_Table_Value_Binary::Set_Value().

◆ Destroy()

◆ fromHexString()

bool CSG_Bytes::fromHexString ( const CSG_String HexString)

◆ Get_Byte()

BYTE CSG_Bytes::Get_Byte ( int  i) const
inline

Definition at line 837 of file api_core.h.

◆ Get_Bytes() [1/2]

CSG_Bytes CSG_Bytes::Get_Bytes ( int  i) const
inline

Definition at line 834 of file api_core.h.

◆ Get_Bytes() [2/2]

◆ Get_Count()

int CSG_Bytes::Get_Count ( void  ) const
inline

◆ is_EOF()

bool CSG_Bytes::is_EOF ( void  )
inline

Definition at line 829 of file api_core.h.

◆ operator+()

CSG_Bytes CSG_Bytes::operator+ ( int  i) const
inline

Definition at line 835 of file api_core.h.

◆ operator+=() [1/9]

CSG_Bytes& CSG_Bytes::operator+= ( BYTE  Value)
inline

Definition at line 849 of file api_core.h.

◆ operator+=() [2/9]

CSG_Bytes& CSG_Bytes::operator+= ( char  Value)
inline

Definition at line 851 of file api_core.h.

◆ operator+=() [3/9]

CSG_Bytes& CSG_Bytes::operator+= ( const CSG_Bytes Bytes)
inline

Definition at line 844 of file api_core.h.

◆ operator+=() [4/9]

CSG_Bytes& CSG_Bytes::operator+= ( double  Value)
inline

Definition at line 863 of file api_core.h.

◆ operator+=() [5/9]

CSG_Bytes& CSG_Bytes::operator+= ( DWORD  Value)
inline

Definition at line 859 of file api_core.h.

◆ operator+=() [6/9]

CSG_Bytes& CSG_Bytes::operator+= ( float  Value)
inline

Definition at line 861 of file api_core.h.

◆ operator+=() [7/9]

CSG_Bytes& CSG_Bytes::operator+= ( int  Value)
inline

Definition at line 857 of file api_core.h.

◆ operator+=() [8/9]

CSG_Bytes& CSG_Bytes::operator+= ( short  Value)
inline

Definition at line 853 of file api_core.h.

◆ operator+=() [9/9]

CSG_Bytes& CSG_Bytes::operator+= ( WORD  Value)
inline

Definition at line 855 of file api_core.h.

◆ operator=()

CSG_Bytes& CSG_Bytes::operator= ( const CSG_Bytes Bytes)
inline

Definition at line 841 of file api_core.h.

◆ operator[]()

BYTE CSG_Bytes::operator[] ( int  i) const
inline

Definition at line 838 of file api_core.h.

◆ Read_Byte()

BYTE CSG_Bytes::Read_Byte ( void  )
inline

◆ Read_Char()

char CSG_Bytes::Read_Char ( void  )
inline

Definition at line 875 of file api_core.h.

Referenced by CSG_Grid_OGIS_Converter::from_WKBinary().

◆ Read_Double()

double CSG_Bytes::Read_Double ( bool  bSwapBytes = false)
inline

Definition at line 881 of file api_core.h.

Referenced by CSG_Grid_OGIS_Converter::from_WKBinary().

◆ Read_DWord()

DWORD CSG_Bytes::Read_DWord ( bool  bSwapBytes = false)
inline

◆ Read_Float()

float CSG_Bytes::Read_Float ( bool  bSwapBytes = false)
inline

Definition at line 880 of file api_core.h.

Referenced by CSG_Grid_OGIS_Converter::from_WKBinary().

◆ Read_Int()

int CSG_Bytes::Read_Int ( bool  bSwapBytes = false)
inline

Definition at line 878 of file api_core.h.

Referenced by CSG_Grid_OGIS_Converter::from_WKBinary().

◆ Read_Short()

short CSG_Bytes::Read_Short ( bool  bSwapBytes = false)
inline

Definition at line 876 of file api_core.h.

Referenced by CSG_Grid_OGIS_Converter::from_WKBinary().

◆ Read_Word()

WORD CSG_Bytes::Read_Word ( bool  bSwapBytes = false)
inline

Definition at line 877 of file api_core.h.

Referenced by CSG_Grid_OGIS_Converter::from_WKBinary().

◆ Rewind()

void CSG_Bytes::Rewind ( void  )
inline

◆ toHexString()

CSG_String CSG_Bytes::toHexString ( void  ) const

Definition at line 966 of file api_memory.cpp.

References CSG_String::Format(), and SG_T.


The documentation for this class was generated from the following files: