HDK
|
#include <UT_NTStreamUtil.h>
Public Member Functions | |
UT_OStrStreamBuf () | |
UT_OStrStreamBuf (exint initialsize) | |
UT_OStrStreamBuf (char *pch, exint len) | |
~UT_OStrStreamBuf () override | |
UT_OStrStreamBuf (const UT_OStrStreamBuf &)=delete | |
UT_OStrStreamBuf | operator= (const UT_OStrStreamBuf &)=delete |
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 |
|
delete |
|
inline |
Definition at line 112 of file UT_NTStreamUtil.h.
|
delete |
|
inline |
Definition at line 118 of file UT_NTStreamUtil.h.
|
protected |
|
overrideprotected |
|
overrideprotected |
|
inline |
Definition at line 106 of file UT_NTStreamUtil.h.
|
overrideprotected |
|
protected |
Definition at line 128 of file UT_NTStreamUtil.h.
|
protected |
Definition at line 126 of file UT_NTStreamUtil.h.
|
protected |
Definition at line 126 of file UT_NTStreamUtil.h.
|
protected |
Definition at line 127 of file UT_NTStreamUtil.h.
|
protected |
Definition at line 126 of file UT_NTStreamUtil.h.