Electroneum
EncodedInputStream< UTF8<>, MemoryStream > Class Template Reference

Specialized for UTF8 MemoryStream. More...

#include <encodedstream.h>

Collaboration diagram for EncodedInputStream< UTF8<>, MemoryStream >:

Public Types

typedef UTF8 ::Ch Ch
 

Public Member Functions

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

Public Attributes

MemoryStreamis_
 

Detailed Description

template<>
class EncodedInputStream< UTF8<>, MemoryStream >

Specialized for UTF8 MemoryStream.

Definition at line 68 of file encodedstream.h.

Member Typedef Documentation

◆ Ch

Definition at line 70 of file encodedstream.h.

Constructor & Destructor Documentation

◆ EncodedInputStream()

Definition at line 72 of file encodedstream.h.

72  : is_(is) {
73  if (static_cast<unsigned char>(is_.Peek()) == 0xEFu) is_.Take();
74  if (static_cast<unsigned char>(is_.Peek()) == 0xBBu) is_.Take();
75  if (static_cast<unsigned char>(is_.Peek()) == 0xBFu) is_.Take();
76  }
Ch Peek() const
Definition: memorystream.h:45

Member Function Documentation

◆ Flush()

void EncodedInputStream< UTF8<>, MemoryStream >::Flush ( )
inline

Definition at line 83 of file encodedstream.h.

83 {}

◆ Peek()

Ch EncodedInputStream< UTF8<>, MemoryStream >::Peek ( ) const
inline

Definition at line 77 of file encodedstream.h.

77 { return is_.Peek(); }
Ch Peek() const
Definition: memorystream.h:45

◆ Put()

void EncodedInputStream< UTF8<>, MemoryStream >::Put ( Ch  )
inline

Definition at line 82 of file encodedstream.h.

82 {}

◆ PutBegin()

Ch* EncodedInputStream< UTF8<>, MemoryStream >::PutBegin ( )
inline

Definition at line 84 of file encodedstream.h.

84 { return 0; }

◆ PutEnd()

size_t EncodedInputStream< UTF8<>, MemoryStream >::PutEnd ( Ch )
inline

Definition at line 85 of file encodedstream.h.

85 { return 0; }

◆ Take()

Ch EncodedInputStream< UTF8<>, MemoryStream >::Take ( )
inline

Definition at line 78 of file encodedstream.h.

78 { return is_.Take(); }

◆ Tell()

size_t EncodedInputStream< UTF8<>, MemoryStream >::Tell ( ) const
inline

Definition at line 79 of file encodedstream.h.

79 { return is_.Tell(); }
size_t Tell() const
Definition: memorystream.h:47

Member Data Documentation

◆ is_

Definition at line 87 of file encodedstream.h.


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