public class ByteArrayFileIO extends BaseAndroidFileIO
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
bytes |
protected String |
path |
oflags, op, stdioSIOCGIFCONF, SIOCGIFFLAGS, SIOCGIFNAME| Constructor and Description |
|---|
ByteArrayFileIO(int oflags,
String path,
byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
fstat(Emulator<?> emulator,
StatStructure stat) |
int |
ftruncate(int length) |
protected byte[] |
getMmapData(long addr,
int offset,
int length) |
int |
ioctl(Emulator<?> emulator,
long request,
long argp) |
int |
lseek(int offset,
int whence) |
int |
pread(Backend backend,
com.sun.jna.Pointer buffer,
int count,
long offset) |
int |
read(Backend backend,
com.sun.jna.Pointer buffer,
int count) |
String |
toString() |
int |
write(byte[] data) |
accept, getdents64, setFlags, statfsbind, canRead, connect, dup2, fcntl, getPath, getpeername, getsockname, getsockopt, isStdIO, listen, llseek, mmap2, recvfrom, sendto, setsockopt, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbind, connect, dup2, fcntl, getPath, getpeername, getsockname, getsockopt, isStdIO, listen, llseek, mmap2, recvfrom, sendto, setsockopt, shutdownprotected final byte[] bytes
protected final String path
public ByteArrayFileIO(int oflags,
String path,
byte[] bytes)
public void close()
close in interface FileIOclose in class AbstractFileIOpublic int write(byte[] data)
write in interface FileIOwrite in class AbstractFileIOpublic int pread(Backend backend, com.sun.jna.Pointer buffer, int count, long offset)
pread in interface FileIOpread in class AbstractFileIOpublic int read(Backend backend, com.sun.jna.Pointer buffer, int count)
read in interface FileIOread in class AbstractFileIOpublic int lseek(int offset,
int whence)
lseek in interface FileIOlseek in class AbstractFileIOpublic int fstat(Emulator<?> emulator, StatStructure stat)
fstat in interface AndroidFileIOfstat in class BaseAndroidFileIOprotected byte[] getMmapData(long addr,
int offset,
int length)
getMmapData in class AbstractFileIOpublic int ioctl(Emulator<?> emulator, long request, long argp)
ioctl in interface FileIOioctl in class AbstractFileIOpublic int ftruncate(int length)
ftruncate in interface FileIOftruncate in class AbstractFileIOCopyright © 2026. All rights reserved.