Panda3D
Loading...
Searching...
No Matches
Macros | Functions
nativeNumericData.I File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

Go to the source code of this file.

Macros

#define TS_GetDirect(TT, SS)   *((TT *)(SS))
 
#define TS_GetDirectIncPtr(TT, SS)   { _ptr += sizeof(TT); return *((TT *)(SS -sizeof(TT))); }
 

Functions

template<class type >
void TS_AddInteger (type val, char *_dst)
 
template<class type >
void TS_AddIntegerIncPtr (type val, char *&_dst)
 
template<class type >
type TS_GetInteger (type &val, const char *_src)
 
template<class type >
type TS_GetIntegerIncPtr (type &val, char *&_src)
 
void TS_SetVal1 (const int8_t *src, int8_t *dst)
 
void TS_SetVal2 (const char *src, char *dst)
 
void TS_SetVal4 (const char *src, char *dst)
 
void TS_SetVal8 (const char *src, char *dst)
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2001-05-09

Definition in file nativeNumericData.I.

Macro Definition Documentation

◆ TS_GetDirect

#define TS_GetDirect ( TT,
SS )   *((TT *)(SS))

Definition at line 101 of file nativeNumericData.I.

◆ TS_GetDirectIncPtr

#define TS_GetDirectIncPtr ( TT,
SS )   { _ptr += sizeof(TT); return *((TT *)(SS -sizeof(TT))); }

Definition at line 102 of file nativeNumericData.I.

Function Documentation

◆ TS_AddInteger()

template<class type >
void TS_AddInteger ( type val,
char * _dst )
inline

Definition at line 96 of file nativeNumericData.I.

◆ TS_AddIntegerIncPtr()

template<class type >
void TS_AddIntegerIncPtr ( type val,
char *& _dst )
inline

Definition at line 90 of file nativeNumericData.I.

◆ TS_GetInteger()

template<class type >
type TS_GetInteger ( type & val,
const char * _src )
inline

Definition at line 77 of file nativeNumericData.I.

◆ TS_GetIntegerIncPtr()

template<class type >
type TS_GetIntegerIncPtr ( type & val,
char *& _src )
inline

Definition at line 83 of file nativeNumericData.I.

◆ TS_SetVal1()

void TS_SetVal1 ( const int8_t * src,
int8_t * dst )
inline

Definition at line 57 of file nativeNumericData.I.

◆ TS_SetVal2()

void TS_SetVal2 ( const char * src,
char * dst )
inline

Definition at line 61 of file nativeNumericData.I.

◆ TS_SetVal4()

void TS_SetVal4 ( const char * src,
char * dst )
inline

Definition at line 66 of file nativeNumericData.I.

◆ TS_SetVal8()

void TS_SetVal8 ( const char * src,
char * dst )
inline

Definition at line 72 of file nativeNumericData.I.