Fix bytesLeftToRead

This commit is contained in:
Ryan Huffman 2015-07-15 15:01:27 -07:00
parent 2d86e807b0
commit ad61c3db41

View file

@ -63,7 +63,7 @@ public:
// Returns the number of bytes allocated for the payload
qint64 getPayloadCapacity() const { return _payloadCapacity; }
qint64 bytesLeftToRead() const { return _payloadCapacity - pos(); }
qint64 bytesLeftToRead() const { return _payloadSize - pos(); }
qint64 bytesAvailableForWrite() const { return _payloadCapacity - pos(); }
HifiSockAddr& getSenderSockAddr() { return _senderSockAddr; }