OpenClonk
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 213 of file StdAdaptors.h.

Constructor & Destructor Documentation

◆ StdRawAdapt()

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

Definition at line 216 of file StdAdaptors.h.

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

Member Function Documentation

◆ CompileFunc()

void StdRawAdapt::CompileFunc ( StdCompiler pComp) const
inline

Definition at line 218 of file StdAdaptors.h.

References StdCompiler::Raw().

219  {
220  pComp->Raw(pData, iSize, eRawType);
221  }
virtual void Raw(void *pData, size_t iSize, RawCompileType eType=RCT_Escaped)=0
size_t iSize
Definition: StdAdaptors.h:215
void * pData
Definition: StdAdaptors.h:215
StdCompiler::RawCompileType eRawType
Definition: StdAdaptors.h:215
Here is the call graph for this function:

◆ operator=()

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

Definition at line 223 of file StdAdaptors.h.

223 { memcpy(pData, pDefault, iSize); return *this; }
size_t iSize
Definition: StdAdaptors.h:215
void * pData
Definition: StdAdaptors.h:215

◆ operator==()

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

Definition at line 222 of file StdAdaptors.h.

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

Member Data Documentation

◆ eRawType

StdCompiler::RawCompileType StdRawAdapt::eRawType

Definition at line 215 of file StdAdaptors.h.

◆ iSize

size_t StdRawAdapt::iSize

Definition at line 215 of file StdAdaptors.h.

◆ pData

void* StdRawAdapt::pData

Definition at line 215 of file StdAdaptors.h.


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