Java android.os MemoryFile fields, constructors, methods, implement or subclass

Example usage for Java android.os MemoryFile fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.os MemoryFile.

The text is from its open source code.

Constructor

MemoryFile(String name, int length)
Allocates a new ashmem region.

Method

voidclose()
Closes the memory file.
FileDescriptorgetFileDescriptor()
Gets a FileDescriptor for the memory file.
intgetSize(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.
voidwriteBytes(byte[] buffer, int srcOffset, int destOffset, int count)
Write bytes to the memory file.