Stub some stuff

This commit is contained in:
Nikita Travkin
2022-11-02 16:40:15 +05:00
committed by Mis012
parent 6a1d2f4ed4
commit c7fcb0f84e
11 changed files with 809 additions and 17 deletions

View File

@@ -1,3 +1,5 @@
#define _LARGEFILE64_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
@@ -90,6 +92,14 @@ struct AAssetManager * AAssetManager_fromJava(JNIEnv *env, jobject assetManager)
return NULL;
}
int AAsset_read(struct AAsset *asset, void *buf, size_t count) {
return read(asset->fd, buf, count);
}
off64_t AAsset_seek64(struct AAsset *asset, off64_t offset, int whence) {
return lseek64(asset->fd, offset, whence);
}
void AAsset_close(struct AAsset *asset)
{
int fd = asset->fd;