Package com.indeed.util.mmap
Class HeapMemory
- java.lang.Object
-
- com.indeed.util.mmap.AbstractMemory
-
- com.indeed.util.mmap.HeapMemory
-
- All Implemented Interfaces:
Memory
public final class HeapMemory extends AbstractMemory
-
-
Constructor Summary
Constructors Constructor Description HeapMemory(byte[] data, int offset, int length, java.nio.ByteOrder endianness)HeapMemory(byte[] data, java.nio.ByteOrder endianness)HeapMemory(int length, java.nio.ByteOrder endianness)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetByte(long l)voidgetBytes(long l, byte[] bytes)voidgetBytes(long l, byte[] bytes, int start, int 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, 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)Memoryslice(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, 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, 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 Memory slice(long startAddress, long sliceLength)
-
length
public long length()
-
isDirect
public boolean isDirect()
-
getOrder
public java.nio.ByteOrder getOrder()
-
-