Minor additions to make working with binary buffers easier.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2000-01-31 21:22:44 +00:00
parent eec92d76f8
commit 8f06a01712
2 changed files with 9 additions and 0 deletions

View File

@@ -528,6 +528,12 @@ void wxString::UngetWriteBuf()
GetStringData()->Validate(TRUE);
}
void wxString::UngetWriteBuf(size_t nLen)
{
GetStringData()->nDataLength = nLen;
GetStringData()->Validate(TRUE);
}
// ---------------------------------------------------------------------------
// data access
// ---------------------------------------------------------------------------