diff options
author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-02-27 20:51:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-27 20:51:04 +0200 |
commit | 2f362aa1261129014bc0e10c8604be9af8540658 (patch) | |
tree | 92917183ce9c88e6ed38220514fb5a826fdebb6b /indra/llmessage/llpacketbuffer.h | |
parent | ecac92c60c1ca92aae0bb940c8a7952146c99df0 (diff) | |
parent | b52842ee2a328d80834f9a62c1b130ec757b9a03 (diff) |
Merge pull request #3583 'faster avatar loading' into release/2025.03
Diffstat (limited to 'indra/llmessage/llpacketbuffer.h')
-rw-r--r-- | indra/llmessage/llpacketbuffer.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/indra/llmessage/llpacketbuffer.h b/indra/llmessage/llpacketbuffer.h index a2d2973fb0..ac4012d330 100644 --- a/indra/llmessage/llpacketbuffer.h +++ b/indra/llmessage/llpacketbuffer.h @@ -35,20 +35,22 @@ class LLPacketBuffer { public: LLPacketBuffer(const LLHost &host, const char *datap, const S32 size); - LLPacketBuffer(S32 hSocket); // receive a packet + LLPacketBuffer(S32 hSocket); // receive a packet ~LLPacketBuffer(); S32 getSize() const { return mSize; } const char *getData() const { return mData; } LLHost getHost() const { return mHost; } LLHost getReceivingInterface() const { return mReceivingIF; } + void init(S32 hSocket); + void init(const char* buffer, S32 data_size, const LLHost& host); protected: - char mData[NET_BUFFER_SIZE]; // packet data /* Flawfinder : ignore */ - S32 mSize; // size of buffer in bytes - LLHost mHost; // source/dest IP and port - LLHost mReceivingIF; // source/dest IP and port + char mData[NET_BUFFER_SIZE]; // packet data /* Flawfinder : ignore */ + S32 mSize; // size of buffer in bytes + LLHost mHost; // source/dest IP and port + LLHost mReceivingIF; // source/dest IP and port }; #endif |