Description
memcpy(data, d->downloadBuffer.constData(), howMuch); s.b. memcpy(data, d->downloadBuffer.constData() + d->downloadBufferReadPosition, howMuch);
https://github.com/msorvig/qt-webassembly-examples/tree/master/core_network
If the .wasm that this example tries to transfer is more than 2^14 bytes (chunk size), the Sha will be wrong. If you change the line of code mentioned above, it will begin to work correctly. The author of readData is not advancing the pointer into the source data.