Answer the question
In order to leave comments, you need to log in
lseek not working?
Hello!
I write for android at a low level, i.e. c/c++. The lseek function does not work. When calling errors, it does not produce any, but there is also no result. At the same time, a similar fseek function works, what could be the problem?
ps1 the library on c/c++ is attached and lseek is called there in a wrapper, so just using fseek does not work because of different arguments.
ps2 such functions as read/write/open/close work.
Answer the question
In order to leave comments, you need to log in
There is such a problem. It is associated with access through the handle, the system returns empty values, since it prohibits reading the file. The recommended workaround is a refactor under AAsset_seek() or AAsset_seek64().
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question