com.kenai.jaffl.provider
Class AbstractMemoryIO
java.lang.Object
com.kenai.jaffl.MemoryIO
com.kenai.jaffl.provider.AbstractMemoryIO
- All Implemented Interfaces:
- Pointer
- Direct Known Subclasses:
- AbstractArrayMemoryIO, AbstractBufferMemoryIO, BoundedMemoryIO, NullMemoryIO, ShareMemoryIO
public abstract class AbstractMemoryIO
- extends MemoryIO
Base implementations of some MemoryIO operations.
Fields inherited from interface com.kenai.jaffl.Pointer |
SIZE |
Method Summary |
protected static void |
checkBounds(long size,
long off,
long len)
|
long |
getAddress(long offset)
|
long |
getNativeLong(long offset)
|
int |
indexOf(long offset,
byte value)
|
void |
putAddress(long offset,
Address value)
|
void |
putAddress(long offset,
long value)
|
void |
putNativeLong(long offset,
long value)
|
MemoryIO |
slice(long offset)
|
MemoryIO |
slice(long offset,
long size)
|
void |
transferFrom(long offset,
MemoryIO other,
long otherOffset,
long count)
|
void |
transferTo(long offset,
MemoryIO other,
long otherOffset,
long count)
|
Methods inherited from class com.kenai.jaffl.MemoryIO |
address, allocate, allocateDirect, allocateDirect, get, get, get, get, get, get, getByte, getDouble, getFloat, getInt, getLong, getMemoryIO, getMemoryIO, getPointer, getShort, getString, getString, indexOf, isDirect, put, put, put, put, put, put, putByte, putDouble, putFloat, putInt, putLong, putPointer, putShort, putString, setMemory, wrap, wrap, wrap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMemoryIO
public AbstractMemoryIO()
checkBounds
protected static final void checkBounds(long size,
long off,
long len)
indexOf
public int indexOf(long offset,
byte value)
- Specified by:
indexOf
in class MemoryIO
getAddress
public long getAddress(long offset)
- Specified by:
getAddress
in class MemoryIO
putAddress
public void putAddress(long offset,
long value)
- Specified by:
putAddress
in class MemoryIO
putAddress
public void putAddress(long offset,
Address value)
- Specified by:
putAddress
in class MemoryIO
getNativeLong
public final long getNativeLong(long offset)
- Specified by:
getNativeLong
in class MemoryIO
slice
public MemoryIO slice(long offset)
- Specified by:
slice
in class MemoryIO
slice
public MemoryIO slice(long offset,
long size)
- Specified by:
slice
in class MemoryIO
putNativeLong
public void putNativeLong(long offset,
long value)
- Specified by:
putNativeLong
in class MemoryIO
transferTo
public void transferTo(long offset,
MemoryIO other,
long otherOffset,
long count)
- Specified by:
transferTo
in class MemoryIO
transferFrom
public void transferFrom(long offset,
MemoryIO other,
long otherOffset,
long count)
Copyright © 2011. All Rights Reserved.