public final class JniSharedMemory
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize() |
long |
getMmapAddress() |
static boolean |
isEnabled() |
static JniSharedMemory |
open(java.lang.String name,
int dataLength,
boolean isRead) |
int |
read(byte[] buffer,
int offset,
int length) |
java.lang.String |
toString()
Returns the debug name for the stream.
|
int |
write(byte[] buffer,
int offset,
int length) |
public static boolean isEnabled()
public static JniSharedMemory open(java.lang.String name, int dataLength, boolean isRead)
public long getMmapAddress()
public int write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionprotected void finalize()
throws java.io.IOException
finalize in class java.lang.Objectjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object