OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
StdRawAdapt Struct Reference

#include <StdAdaptors.h>

Public Member Functions

 StdRawAdapt (void *pData, size_t iSize, StdCompiler::RawCompileType eRawType=StdCompiler::RCT_Escaped)
 
void CompileFunc (StdCompiler *pComp) const
 
bool operator== (const void *pDefault) const
 
StdRawAdaptoperator= (const void *pDefault)
 

Public Attributes

void * pData
 
size_t iSize
 
StdCompiler::RawCompileType eRawType
 

Detailed Description

Definition at line 196 of file StdAdaptors.h.

Constructor & Destructor Documentation

StdRawAdapt::StdRawAdapt ( void *  pData,
size_t  iSize,
StdCompiler::RawCompileType  eRawType = StdCompiler::RCT_Escaped 
)
inline

Definition at line 199 of file StdAdaptors.h.

size_t iSize
Definition: StdAdaptors.h:198
void * pData
Definition: StdAdaptors.h:198
StdCompiler::RawCompileType eRawType
Definition: StdAdaptors.h:198

Member Function Documentation

void StdRawAdapt::CompileFunc ( StdCompiler pComp) const
inline

Definition at line 201 of file StdAdaptors.h.

References StdCompiler::Raw().

202  {
203  pComp->Raw(pData, iSize, eRawType);
204  }
virtual void Raw(void *pData, size_t iSize, RawCompileType eType=RCT_Escaped)=0
size_t iSize
Definition: StdAdaptors.h:198
void * pData
Definition: StdAdaptors.h:198
StdCompiler::RawCompileType eRawType
Definition: StdAdaptors.h:198

Here is the call graph for this function:

StdRawAdapt& StdRawAdapt::operator= ( const void *  pDefault)
inline

Definition at line 206 of file StdAdaptors.h.

206 { memcpy(pData, pDefault, iSize); return *this; }
size_t iSize
Definition: StdAdaptors.h:198
void * pData
Definition: StdAdaptors.h:198
bool StdRawAdapt::operator== ( const void *  pDefault) const
inline

Definition at line 205 of file StdAdaptors.h.

205 { return !memcmp(pDefault, pData, iSize); }
size_t iSize
Definition: StdAdaptors.h:198
void * pData
Definition: StdAdaptors.h:198

Member Data Documentation

StdCompiler::RawCompileType StdRawAdapt::eRawType

Definition at line 198 of file StdAdaptors.h.

size_t StdRawAdapt::iSize

Definition at line 198 of file StdAdaptors.h.

void* StdRawAdapt::pData

Definition at line 198 of file StdAdaptors.h.


The documentation for this struct was generated from the following file: