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.

void * pData
Definition: StdAdaptors.h:215
size_t iSize
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.

219  {
220  pComp->Raw(pData, iSize, eRawType);
221  }
virtual void Raw(void *pData, size_t iSize, RawCompileType eType=RCT_Escaped)=0

References eRawType, iSize, pData, and StdCompiler::Raw().

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; }

References iSize, and pData.

◆ operator==()

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

Definition at line 222 of file StdAdaptors.h.

222 { return !memcmp(pDefault, pData, iSize); }

References iSize, and pData.

Member Data Documentation

◆ eRawType

StdCompiler::RawCompileType StdRawAdapt::eRawType

Definition at line 215 of file StdAdaptors.h.

Referenced by CompileFunc().

◆ iSize

size_t StdRawAdapt::iSize

Definition at line 215 of file StdAdaptors.h.

Referenced by CompileFunc(), operator=(), and operator==().

◆ pData

void* StdRawAdapt::pData

Definition at line 215 of file StdAdaptors.h.

Referenced by CompileFunc(), operator=(), and operator==().


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