RetroArch
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
EncodedInputStream< Encoding, InputByteStream > Class Template Reference

Input byte stream wrapper with a statically bound encoding. More...

#include <encodedstream.h>

Public Types

typedef Encoding::Ch Ch
 

Public Member Functions

 EncodedInputStream (InputByteStream &is)
 
Ch Peek () const
 
Ch Take ()
 
size_t Tell () const
 
void Put (Ch)
 
void Flush ()
 
ChPutBegin ()
 
size_t PutEnd (Ch *)
 

Private Member Functions

 RAPIDJSON_STATIC_ASSERT (sizeof(typename InputByteStream::Ch)==1)
 
 EncodedInputStream (const EncodedInputStream &)
 
EncodedInputStreamoperator= (const EncodedInputStream &)
 

Private Attributes

InputByteStream & is_
 
Ch current_
 

Detailed Description

template<typename Encoding, typename InputByteStream>
class EncodedInputStream< Encoding, InputByteStream >

Input byte stream wrapper with a statically bound encoding.

Template Parameters
EncodingThe interpretation of encoding of the stream. Either UTF8, UTF16LE, UTF16BE, UTF32LE, UTF32BE.
InputByteStreamType of input byte stream. For example, FileReadStream.

Member Typedef Documentation

◆ Ch

template<typename Encoding, typename InputByteStream>
typedef Encoding::Ch EncodedInputStream< Encoding, InputByteStream >::Ch

Constructor & Destructor Documentation

◆ EncodedInputStream() [1/2]

template<typename Encoding, typename InputByteStream>
EncodedInputStream< Encoding, InputByteStream >::EncodedInputStream ( InputByteStream &  is)
inline

◆ EncodedInputStream() [2/2]

template<typename Encoding, typename InputByteStream>
EncodedInputStream< Encoding, InputByteStream >::EncodedInputStream ( const EncodedInputStream< Encoding, InputByteStream > &  )
private

Member Function Documentation

◆ Flush()

template<typename Encoding, typename InputByteStream>
void EncodedInputStream< Encoding, InputByteStream >::Flush ( )
inline

◆ operator=()

template<typename Encoding, typename InputByteStream>
EncodedInputStream& EncodedInputStream< Encoding, InputByteStream >::operator= ( const EncodedInputStream< Encoding, InputByteStream > &  )
private

◆ Peek()

template<typename Encoding, typename InputByteStream>
Ch EncodedInputStream< Encoding, InputByteStream >::Peek ( ) const
inline
Here is the caller graph for this function:

◆ Put()

template<typename Encoding, typename InputByteStream>
void EncodedInputStream< Encoding, InputByteStream >::Put ( Ch  )
inline

◆ PutBegin()

template<typename Encoding, typename InputByteStream>
Ch* EncodedInputStream< Encoding, InputByteStream >::PutBegin ( )
inline

◆ PutEnd()

template<typename Encoding, typename InputByteStream>
size_t EncodedInputStream< Encoding, InputByteStream >::PutEnd ( Ch )
inline

◆ RAPIDJSON_STATIC_ASSERT()

template<typename Encoding, typename InputByteStream>
EncodedInputStream< Encoding, InputByteStream >::RAPIDJSON_STATIC_ASSERT ( sizeof(typename InputByteStream::Ch)  = =1)
private

◆ Take()

template<typename Encoding, typename InputByteStream>
Ch EncodedInputStream< Encoding, InputByteStream >::Take ( )
inline

◆ Tell()

template<typename Encoding, typename InputByteStream>
size_t EncodedInputStream< Encoding, InputByteStream >::Tell ( ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ current_

template<typename Encoding, typename InputByteStream>
Ch EncodedInputStream< Encoding, InputByteStream >::current_
private

◆ is_

template<typename Encoding, typename InputByteStream>
InputByteStream& EncodedInputStream< Encoding, InputByteStream >::is_
private

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