Electroneum
Loading...
Searching...
No Matches
EncodedInputStream< UTF8<>, MemoryStream > Class 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

Specialized for UTF8 MemoryStream.

Definition at line 68 of file encodedstream.h.

Member Typedef Documentation

◆ Ch

typedef UTF8 ::Ch EncodedInputStream< UTF8<>, MemoryStream >::Ch

Definition at line 70 of file encodedstream.h.

Constructor & Destructor Documentation

◆ EncodedInputStream()

EncodedInputStream< UTF8<>, MemoryStream >::EncodedInputStream ( MemoryStream & is)
inline

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 }
Input byte stream wrapper with a statically bound encoding.
Here is the call graph for this function:

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

◆ 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(); }

Member Data Documentation

◆ is_

Definition at line 87 of file encodedstream.h.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/include/rapidjson/encodedstream.h