Btw, I would probably rather use the return value of AAsset_read as it is describe:
*AAsset_read returns the number of bytes read, zero on EOF, or < 0 on error.*
But ```size``` and ```result``` should be the same.