add comments to Packet methods

This commit is contained in:
Stephen Birarda 2015-07-15 11:00:33 -07:00
parent b115bd1a55
commit 95f401fa0f

View file

@ -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; }