NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::ut::CharStrmReader Class Reference

Description

Definition at line 8 of file ut_CharStrmReader.h.

Public Types

typedef u16(CharStrmReader::* ReadFunc) ()
 

Public Member Functions

 CharStrmReader (ReadFunc pFunc)
 
u16 ReadNextCharUTF8 ()
 
u16 ReadNextCharUTF16 ()
 
u16 ReadNextCharCP1252 ()
 
u16 ReadNextCharSJIS ()
 
u16 Next ()
 
const void * GetCurrentPos () const
 
void Set (const char *pStrm)
 
void Set (const wchar_t *pStrm)
 

Private Member Functions

template<typename T>
GetChar (int offset) const
 
template<typename T>
void StepStrm (int offset)
 

Private Attributes

const void * mCharStrm
 
ReadFunc mReadFunc
 

Member Typedef Documentation

◆ ReadFunc

typedef u16(CharStrmReader::* nw4r::ut::CharStrmReader::ReadFunc) ()

Definition at line 10 of file ut_CharStrmReader.h.

Constructor & Destructor Documentation

◆ CharStrmReader()

nw4r::ut::CharStrmReader::CharStrmReader ( ReadFunc pFunc)
inlineexplicit

Definition at line 13 of file ut_CharStrmReader.h.

◆ ~CharStrmReader()

nw4r::ut::CharStrmReader::~CharStrmReader ( )
inline

Definition at line 16 of file ut_CharStrmReader.h.

Member Function Documentation

◆ Next()

u16 nw4r::ut::CharStrmReader::Next ( )
inline

Definition at line 23 of file ut_CharStrmReader.h.

◆ GetCurrentPos()

const void * nw4r::ut::CharStrmReader::GetCurrentPos ( ) const
inline

Definition at line 27 of file ut_CharStrmReader.h.

◆ Set() [1/2]

void nw4r::ut::CharStrmReader::Set ( const char * pStrm)
inline

Definition at line 31 of file ut_CharStrmReader.h.

◆ Set() [2/2]

void nw4r::ut::CharStrmReader::Set ( const wchar_t * pStrm)
inline

Definition at line 34 of file ut_CharStrmReader.h.

◆ GetChar()

template<typename T>
T nw4r::ut::CharStrmReader::GetChar ( int offset) const
inlineprivate

Definition at line 39 of file ut_CharStrmReader.h.

◆ StepStrm()

template<typename T>
void nw4r::ut::CharStrmReader::StepStrm ( int offset)
inlineprivate

Definition at line 43 of file ut_CharStrmReader.h.

Member Data Documentation

◆ mCharStrm

const void* nw4r::ut::CharStrmReader::mCharStrm
private

Definition at line 48 of file ut_CharStrmReader.h.

◆ mReadFunc

ReadFunc nw4r::ut::CharStrmReader::mReadFunc
private

Definition at line 49 of file ut_CharStrmReader.h.