Add comment about byte range for ATP get asset request

This commit is contained in:
Ryan Huffman 2015-09-08 09:53:02 -07:00
parent 9878143661
commit 8fffb77f13

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);