diff options
Diffstat (limited to 'src/bufstr.h')
-rw-r--r-- | src/bufstr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bufstr.h b/src/bufstr.h index 7d3c284..c1cb307 100644 --- a/src/bufstr.h +++ b/src/bufstr.h @@ -55,6 +55,11 @@ class BufStr makeRoomFor(s); m_writeOffset+=s; } + void shrink( uint newlen ) + { + m_writeOffset=newlen; + resize(newlen); + } void resize( uint newlen ) { m_size=newlen; |