HDK
|
#include <UT_NTStreamUtil.h>
Public Member Functions | |
UT_OStrStreamBuf () | |
UT_OStrStreamBuf (exint initialsize) | |
UT_OStrStreamBuf (char *pch, exint len) | |
~UT_OStrStreamBuf () override | |
char * | str () |
void | freeze (bool isfrozen) |
exint | pcount () const |
Protected Member Functions | |
int_type | overflow (int_type c) override |
pos_type | seekoff (off_type _Off, std::ios_base::seekdir _Way, std::ios_base::openmode _Mode=std::ios::out) override |
pos_type | seekpos (pos_type _Off, std::ios_base::openmode _Mode=std::ios::out) override |
std::streamsize | xsputn (const char *s, std::streamsize num) override |
bool | resizeBuf (exint minnewsize) |
Protected Attributes | |
exint | mySize |
exint | myEntries |
exint | myOffset |
bool | myOwnBuf |
char * | myBuf |
We build our own stream buffer to work around a shortcoming in the C++ standard. pbump() and pcount() are defined to use int, not streamsize, so much sadness occurs as you cross 2gb boundaries. See Bug: 45419
Note this isn't a buffered implementation - we don't invoke setpbuf to update pbase, etc. The logic is that may bring us back to the broken pbump land. Hopefully implementations use xsputn anyways.
exints are chosen rather than streamsize or int_type or pos_type because I have lost all faith in how those are defined.
Definition at line 77 of file UT_NTStreamUtil.h.
UT_OStrStreamBuf::UT_OStrStreamBuf | ( | ) |
|
explicit |
UT_OStrStreamBuf::UT_OStrStreamBuf | ( | char * | pch, |
exint | len | ||
) |
|
override |
|
inline |
Definition at line 109 of file UT_NTStreamUtil.h.
|
overrideprotected |
|
inline |
Definition at line 115 of file UT_NTStreamUtil.h.
|
protected |
|
overrideprotected |
|
overrideprotected |
|
inline |
Definition at line 103 of file UT_NTStreamUtil.h.
|
overrideprotected |
|
protected |
Definition at line 125 of file UT_NTStreamUtil.h.
|
protected |
Definition at line 123 of file UT_NTStreamUtil.h.
|
protected |
Definition at line 123 of file UT_NTStreamUtil.h.
|
protected |
Definition at line 124 of file UT_NTStreamUtil.h.
|
protected |
Definition at line 123 of file UT_NTStreamUtil.h.