Merge branch 'protocol' of github.com:birarda/hifi into protocol

This commit is contained in:
Stephen Birarda 2015-09-08 13:43:51 -07:00
commit b8ac2ff48e

View file

@ -40,6 +40,10 @@ void SendAssetTask::run() {
QByteArray assetHash = _packet->read(SHA256_HASH_LENGTH);
_packet->readPrimitive(&extensionLength);
QByteArray extension = _packet->read(extensionLength);
// `start` and `end` indicate the range of data to retrieve for the asset identified by `assetHash`.
// `start` is inclusive, `end` is exclusive. Requesting `start` = 1, `end` = 10 will retrieve 9 bytes of data,
// starting at index 1.
_packet->readPrimitive(&start);
_packet->readPrimitive(&end);