mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
add comments to Packet methods
This commit is contained in:
parent
b115bd1a55
commit
95f401fa0f
1 changed files with 4 additions and 0 deletions
|
@ -49,9 +49,13 @@ public:
|
|||
|
||||
PacketVersion getVersion() const { return _version; }
|
||||
|
||||
// Returns the size of the packet, including the header
|
||||
qint64 getDataSize() const { return totalHeadersSize() + getPayloadSize(); }
|
||||
|
||||
// Returns the size of the payload only
|
||||
qint64 getPayloadSize() const { return _payloadSize; }
|
||||
|
||||
// Allows a writer to change the size of the payload used when writing directly
|
||||
void setPayloadSize(qint64 payloadSize);
|
||||
|
||||
qint64 getPayloadCapacity() const { return _payloadCapacity; }
|
||||
|
|
Loading…
Reference in a new issue