diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-12-22 16:03:24 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-12-22 16:03:24 (GMT) |
commit | f4fab829c8e9b4bf54c60fd85805eb008c3838ab (patch) | |
tree | ed7891ebf8c1dbed877ba72eecb07d5da29b4978 /src/bufstr.h | |
parent | 4a482aae6c3ab0a02ce39a33fa14410ebaec6bc4 (diff) | |
download | Doxygen-f4fab829c8e9b4bf54c60fd85805eb008c3838ab.zip Doxygen-f4fab829c8e9b4bf54c60fd85805eb008c3838ab.tar.gz Doxygen-f4fab829c8e9b4bf54c60fd85805eb008c3838ab.tar.bz2 |
Release-1.6.1-20091222
Diffstat (limited to 'src/bufstr.h')
-rw-r--r-- | src/bufstr.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bufstr.h b/src/bufstr.h index 4ce1dae..083d5b0 100644 --- a/src/bufstr.h +++ b/src/bufstr.h @@ -93,6 +93,13 @@ class BufStr { return m_writeOffset; } + void dropFromStart(uint bytes) + { + if (bytes>m_size) bytes=m_size; + if (bytes>0) qmemmove(m_buf,m_buf+bytes,m_size-bytes); + m_size-=bytes; + m_writeOffset-=bytes; + } private: void makeRoomFor(uint size) { |