I just checked the return type of AAsset_getLength. If they are interchangeable, I don't see any problem.