|
hdac SDK
SDK for hdac blockchain development
|
#include <streams.h>
Public 멤버 함수 | |
| CDataStream (int nTypeIn, int nVersionIn) | |
| CDataStream (const_iterator pbegin, const_iterator pend, int nTypeIn, int nVersionIn) | |
| CDataStream (const char *pbegin, const char *pend, int nTypeIn, int nVersionIn) | |
| CDataStream (const vector_type &vchIn, int nTypeIn, int nVersionIn) | |
| CDataStream (const std::vector< char > &vchIn, int nTypeIn, int nVersionIn) | |
| CDataStream (const std::vector< unsigned char > &vchIn, int nTypeIn, int nVersionIn) | |
| void | Init (int nTypeIn, int nVersionIn) |
| CDataStream & | operator+= (const CDataStream &b) |
| std::string | str () const |
| const_iterator | begin () const |
| iterator | begin () |
| const_iterator | end () const |
| iterator | end () |
| size_type | size () const |
| bool | empty () const |
| void | resize (size_type n, value_type c=0) |
| void | reserve (size_type n) |
| const_reference | operator[] (size_type pos) const |
| reference | operator[] (size_type pos) |
| void | clear () |
| iterator | insert (iterator it, const char &x=char()) |
| void | insert (iterator it, size_type n, const char &x) |
| void | insert (iterator it, std::vector< char >::const_iterator first, std::vector< char >::const_iterator last) |
| void | insert (iterator it, const char *first, const char *last) |
| iterator | erase (iterator it) |
| iterator | erase (iterator first, iterator last) |
| void | Compact () |
| bool | Rewind (size_type n) |
| bool | eof () const |
| CDataStream * | rdbuf () |
| int | in_avail () |
| void | SetType (int n) |
| int | GetType () |
| void | SetVersion (int n) |
| int | GetVersion () |
| void | ReadVersion () |
| void | WriteVersion () |
| CDataStream & | read (char *pch, size_t nSize) |
| CDataStream & | ignore (int nSize) |
| CDataStream & | write (const char *pch, size_t nSize) |
| template<typename Stream > | |
| void | Serialize (Stream &s, int nType, int nVersion) const |
| template<typename T > | |
| unsigned int | GetSerializeSize (const T &obj) |
| template<typename T > | |
| CDataStream & | operator<< (const T &obj) |
| template<typename T > | |
| CDataStream & | operator>> (T &obj) |
| void | GetAndClear (CSerializeData &data) |
Public 속성 | |
| int | nType |
| int | nVersion |
Protected 타입 | |
| typedef CSerializeData | vector_type |
Protected 속성 | |
| vector_type | vch |
| unsigned int | nReadPos |
Friends | |
| CDataStream | operator+ (const CDataStream &a, const CDataStream &b) |
Double ended buffer combining vector and stream-like interfaces.
and << read and write unformatted data using the above serialization templates.
Fills with data in linear time; some stringstream implementations take N^2 time.
1.8.11