comments fixed
This commit is contained in:
@ -144,7 +144,7 @@ public:
|
|||||||
StreamBuffer& replace(long pos, long length, const StreamBuffer& s)
|
StreamBuffer& replace(long pos, long length, const StreamBuffer& s)
|
||||||
{return replace(pos, length, s.buffer+s.offs, s.len);}
|
{return replace(pos, length, s.buffer+s.offs, s.len);}
|
||||||
|
|
||||||
// replace: delete part of buffer
|
// remove: delete from start/pos
|
||||||
StreamBuffer& remove(long pos, long length)
|
StreamBuffer& remove(long pos, long length)
|
||||||
{return replace(pos, length, NULL, 0);}
|
{return replace(pos, length, NULL, 0);}
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ public:
|
|||||||
{if (length>len) length=len;
|
{if (length>len) length=len;
|
||||||
offs+=length; len-=length; return *this;}
|
offs+=length; len-=length; return *this;}
|
||||||
|
|
||||||
// replace: delete end of buffer
|
// truncate: delete end of buffer
|
||||||
StreamBuffer& truncate(long pos)
|
StreamBuffer& truncate(long pos)
|
||||||
{return replace(pos, len, NULL, 0);}
|
{return replace(pos, len, NULL, 0);}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user