Example usage for Java android.os MemoryFile fields, constructors, methods, implement or subclass
The text is from its open source code.
MemoryFile(String name, int length) Allocates a new ashmem region. |
void | close() Closes the memory file. |
FileDescriptor | getFileDescriptor() Gets a FileDescriptor for the memory file. |
int | getSize(FileDescriptor fd) Returns the size of the memory file that the file descriptor refers to, or -1 if the file descriptor does not refer to a memory file. |
void | writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) Write bytes to the memory file. |