Package com.indeed.util.mmap
Class DirectMemory
- java.lang.Object
-
- com.indeed.util.mmap.AbstractMemory
-
- com.indeed.util.mmap.DirectMemory
-
- All Implemented Interfaces:
Memory
public final class DirectMemory extends AbstractMemory
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetAddress()Deprecated.bytegetByte(long l)voidgetBytes(long l, byte[] bytes)voidgetBytes(long l, byte[] bytes, int start, int length)voidgetBytes(long l, DirectMemory dest)voidgetBytes(long l, DirectMemory dest, long start, long length)voidgetBytes(long l, Memory dest)voidgetBytes(long l, Memory dest, long start, long length)voidgetBytes(long l, java.nio.ByteBuffer dest)chargetChar(long l)doublegetDouble(long l)floatgetFloat(long l)intgetInt(long l)longgetLong(long l)java.nio.ByteOrdergetOrder()shortgetShort(long l)booleanisDirect()longlength()voidputByte(long l, byte b)voidputBytes(long l, byte[] bytes)voidputBytes(long l, byte[] bytes, int start, int length)voidputBytes(long l, DirectMemory source)voidputBytes(long l, DirectMemory source, long start, long length)voidputBytes(long l, Memory source)voidputBytes(long l, Memory source, long start, long length)voidputBytes(long l, java.nio.ByteBuffer source)voidputChar(long l, char c)voidputDouble(long l, double v)voidputFloat(long l, float v)voidputInt(long l, int i)voidputLong(long l, long l1)voidputShort(long l, short i)DirectMemoryslice(long startAddress, long sliceLength)-
Methods inherited from class com.indeed.util.mmap.AbstractMemory
byteArray, charArray, doubleArray, floatArray, intArray, longArray, shortArray
-
-
-
-
Method Detail
-
getByte
public byte getByte(long l)
-
putByte
public void putByte(long l, byte b)
-
getShort
public short getShort(long l)
-
putShort
public void putShort(long l, short i)
-
getChar
public char getChar(long l)
-
putChar
public void putChar(long l, char c)
-
getInt
public int getInt(long l)
-
putInt
public void putInt(long l, int i)
-
getLong
public long getLong(long l)
-
putLong
public void putLong(long l, long l1)
-
getFloat
public float getFloat(long l)
-
putFloat
public void putFloat(long l, float v)
-
getDouble
public double getDouble(long l)
-
putDouble
public void putDouble(long l, double v)
-
putBytes
public void putBytes(long l, byte[] bytes)
-
putBytes
public void putBytes(long l, byte[] bytes, int start, int length)
-
putBytes
public void putBytes(long l, DirectMemory source)
-
putBytes
public void putBytes(long l, DirectMemory source, long start, long length)
-
putBytes
public void putBytes(long l, Memory source)
-
putBytes
public void putBytes(long l, Memory source, long start, long length)
-
putBytes
public void putBytes(long l, java.nio.ByteBuffer source)
-
getBytes
public void getBytes(long l, byte[] bytes)
-
getBytes
public void getBytes(long l, byte[] bytes, int start, int length)
-
getBytes
public void getBytes(long l, DirectMemory dest)
-
getBytes
public void getBytes(long l, DirectMemory dest, long start, long length)
-
getBytes
public void getBytes(long l, Memory dest)
-
getBytes
public void getBytes(long l, Memory dest, long start, long length)
-
getBytes
public void getBytes(long l, java.nio.ByteBuffer dest)
-
slice
public DirectMemory slice(long startAddress, long sliceLength)
-
length
public long length()
-
isDirect
public boolean isDirect()
-
getOrder
public java.nio.ByteOrder getOrder()
-
getAddress
@Deprecated public long getAddress()
Deprecated.this is really only here for passing to jni calls. don't use it for anything else. deprecated to make your code ugly if you use it.- Returns:
- address
-
-