diff options
author | Richard Linden <none@none> | 2013-04-12 15:26:37 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-04-12 15:26:37 -0700 |
commit | dea70426a5c96957dd73b7a50c7fdedf77a3bdfb (patch) | |
tree | c493f5e7f2a4717e053e84a6cba3414d7bdd73bb /indra/llmessage | |
parent | a904e7b21b64a87073a446445de46318832d1eb1 (diff) | |
parent | 1ddad3737977b9e750c4d1815ea99b51e75f18aa (diff) |
Automated merge with ssh://hg.lindenlab.com/richard/viewer-interesting-metrics
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) { |