diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2013-03-18 16:56:02 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2013-03-18 16:56:02 -0600 |
commit | 47c608becb629e368a1b227ab30299df7155effd (patch) | |
tree | 562962646f6ec4463a56d32005b3b5251190130e /indra/llmessage | |
parent | 9a81945eac31f41848cd48a5ba18dee4949f2d03 (diff) | |
parent | bdf562036a8ce864bf211b7696b1d74334030f4b (diff) |
Merge
Diffstat (limited to 'indra/llmessage')
-rw-r--r-- | indra/llmessage/lldatapacker.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/llmessage/lldatapacker.h b/indra/llmessage/lldatapacker.h index b0a638c16e..226752d52e 100644 --- a/indra/llmessage/lldatapacker.h +++ b/indra/llmessage/lldatapacker.h @@ -170,6 +170,7 @@ public: S32 getBufferSize() const { return mBufferSize; } const U8* getBuffer() const { return mBufferp; } void reset() { mCurBufferp = mBufferp; mWriteEnabled = (mCurBufferp != NULL); } + void shift(S32 offset) { reset(); mCurBufferp += offset;} void freeBuffer() { delete [] mBufferp; mBufferp = mCurBufferp = NULL; mBufferSize = 0; mWriteEnabled = FALSE; } void assignBuffer(U8 *bufferp, S32 size) { |