|
SNAP Library 4.1, Developer Reference
2018-07-26 16:30:42
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <dt.h>

Public Member Functions | |
| TMem (const int &_MxBfL=0) | |
| TMem (const void *_Bf, const int &_BfL) | |
| TMem (const TMem &Mem) | |
| TMem (const TStr &Str) | |
| ~TMem () | |
| TMem (TSIn &SIn) | |
| void | Save (TSOut &SOut) const |
| void | LoadXml (const PXmlTok &XmlTok, const TStr &Nm) |
| void | SaveXml (TSOut &SOut, const TStr &Nm) const |
| TMem & | operator= (const TMem &Mem) |
| char * | operator() () const |
| TMem & | operator+= (const char &Ch) |
| TMem & | operator+= (const TMem &Mem) |
| TMem & | operator+= (const TStr &Str) |
| TMem & | operator+= (const PSIn &SIn) |
| char & | operator[] (const int &ChN) const |
| int | GetMemUsed () const |
| void | Gen (const int &_BfL) |
| void | GenZeros (const int &_BfL) |
| void | Reserve (const int &_MxBfL, const bool &DoClr=true) |
| void | Del (const int &BChN, const int &EChN) |
| void | Clr (const bool &DoDel=true) |
| int | Len () const |
| bool | Empty () const |
| void | Trunc (const int &_BfL) |
| void | Push (const char &Ch) |
| char | Pop () |
| bool | DoFitStr (const TStr &Str) const |
| void | AddBf (const void *Bf, const int &BfL) |
| char * | GetBf () const |
| TStr | GetAsStr (const char &NewNullCh='\0') const |
| PSIn | GetSIn () const |
| void | SaveMem (const PSOut &SOut) const |
Static Public Member Functions | |
| static PMem | New (const int &MxBfL=0) |
| static PMem | New (const void *Bf, const int &BfL) |
| static PMem | New (const TMem &Mem) |
| static PMem | New (const PMem &Mem) |
| static PMem | New (const TStr &Str) |
| static void | LoadMem (const PSIn &SIn, TMem &Mem) |
| static void | LoadMem (const PSIn &SIn, const PMem &Mem) |
Private Member Functions | |
| void | Resize (const int &_MxBfL) |
| bool | DoFitLen (const int &LBfL) const |
Private Attributes | |
| TCRef | CRef |
| int | MxBfL |
| int | BfL |
| char * | Bf |
Friends | |
| class | TPt< TMem > |
|
inline |
|
inline |
| TMem::TMem | ( | const TStr & | Str | ) |
|
inline |
|
inlineexplicit |
Definition at line 100 of file dt.h.
References TSIn::Load(), and TSIn::LoadBf().

| void TMem::AddBf | ( | const void * | Bf, |
| const int & | BfL | ||
| ) |
|
inline |
Definition at line 131 of file dt.h.
Referenced by THttpLx::ClrMemSf(), Del(), THttpRq::GetAsMem(), THttpResp::GetAsMem(), THttpRq::GetBodyAsMem(), LoadMem(), and THttpResp::ParseHttpResp().

| void TMem::Del | ( | const int & | BChN, |
| const int & | EChN | ||
| ) |
|
inlineprivate |
Definition at line 82 of file dt.h.
Referenced by DoFitStr().

| bool TMem::DoFitStr | ( | const TStr & | Str | ) | const |
Definition at line 247 of file dt.cpp.
References DoFitLen(), and TStr::Len().

|
inline |
|
inline |
Definition at line 123 of file dt.h.
Referenced by TMd5::GetSigMem(), and LoadMem().

|
inline |
| TStr TMem::GetAsStr | ( | const char & | NewNullCh = '\0' | ) | const |
Definition at line 303 of file dt.cpp.
References TChA::ChangeCh().
Referenced by THttpRq::GetStr(), THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().


|
inline |
|
inline |
|
inline |
Definition at line 134 of file dt.h.
Referenced by AddBf(), THttpResp::GetSIn(), THttpRq::GetStr(), TXmlLx::GetXmlStrFromPlainMem(), operator+=(), TChA::operator+=(), THttpRq::ParseHttpRq(), TSOut::PutMem(), TChA::TChA(), and TStr::TStr().

Definition at line 149 of file dt.h.
References Bf, Clr(), Gen(), TSIn::GetBf(), and TSIn::Len().
Referenced by THttpLx::GetRest(), and THttpResp::THttpResp().


Definition at line 151 of file dt.h.
References Bf, Clr(), Gen(), TSIn::GetBf(), and TSIn::Len().

|
inlinestatic |
|
inline |
| TMem & TMem::operator+= | ( | const char & | Ch | ) |
Definition at line 262 of file dt.cpp.
References Bf, BfL, TStr::CStr(), TStr::Len(), MxBfL, and Resize().

Definition at line 268 of file dt.cpp.
References Bf, BfL, TSIn::GetBf(), TSIn::Len(), MxBfL, and Resize().

|
inline |
|
inline |
|
inline |
|
private |
|
inline |
Definition at line 103 of file dt.h.
References TSOut::Save(), and TSOut::SaveBf().

|
inline |
Definition at line 242 of file dt.cpp.
References BfL, TInt::GetStr(), TXmlLx::GetXmlStrFromPlainMem(), TSOut::PutStr(), and XSaveHdArg.

|
inline |
|
private |
Definition at line 80 of file dt.h.
Referenced by AddBf(), Del(), LoadMem(), operator+=(), operator=(), Resize(), and TMem().
|
private |
Definition at line 79 of file dt.h.
Referenced by AddBf(), Del(), operator+=(), operator=(), Resize(), SaveXml(), and TMem().
|
private |
Definition at line 79 of file dt.h.
Referenced by operator+=(), operator=(), Resize(), and TMem().