Package net.haesleinhuepf.clij.coremem
Class MappedMemoryBase
- java.lang.Object
-
- net.haesleinhuepf.clij.coremem.rgc.FreeableBase
-
- net.haesleinhuepf.clij.coremem.MemoryBase
-
- net.haesleinhuepf.clij.coremem.MappedMemoryBase
-
- All Implemented Interfaces:
ContiguousMemoryInterface,BridJPointerWrappable,ByteBufferWrappable,Copyable<ContiguousMemoryInterface>,CopyFromToJavaArray,CopyFromToNIOBuffers,CopyRangeFromToJavaArray,JNAPointerWrappable,MappableMemory,MemoryTyped,PointerAccessible,RangeCopyable<MemoryBase>,ReadAt,ReadAtAligned,ReadWriteBytesFileChannel,SizedInBytes,WriteAt,WriteAtAligned,Cleanable,Freeable
- Direct Known Subclasses:
FileMappedMemoryRegion
public abstract class MappedMemoryBase extends MemoryBase implements MappableMemory
This base class offers basic mapping/unmapping machinery for descendents.- Author:
- royer
-
-
Field Summary
-
Fields inherited from class net.haesleinhuepf.clij.coremem.MemoryBase
mAddressInBytes, mIsFree, mLengthInBytes
-
-
Constructor Summary
Constructors Constructor Description MappedMemoryBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanisCurrentlyMapped()Returns true if this object is mapped, false otherwise.abstract longmap()Maps this memory object.protected voidsetCurrentlyMapped(boolean pMapped)Sets the mapped state of this MappableMemory region.abstract voidunmap()Unmaps this memory object.-
Methods inherited from class net.haesleinhuepf.clij.coremem.MemoryBase
copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyRangeTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, free, getAddress, getBridJPointer, getByte, getByteAligned, getByteBuffer, getChar, getCharAligned, getDouble, getDoubleAligned, getFloat, getFloatAligned, getInt, getIntAligned, getJNAPointer, getLong, getLongAligned, getMemoryType, getShort, getShortAligned, getSizeInBytes, isFree, readBytesFromFileChannel, readBytesFromFileChannel, setByte, setByteAligned, setChar, setCharAligned, setDouble, setDoubleAligned, setFloat, setFloatAligned, setInt, setIntAligned, setLong, setLongAligned, setShort, setShortAligned, writeBytesToFileChannel, writeBytesToFileChannel
-
Methods inherited from class net.haesleinhuepf.clij.coremem.rgc.FreeableBase
complainIfFreed
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.haesleinhuepf.clij.coremem.rgc.Cleanable
getCleaner
-
Methods inherited from interface net.haesleinhuepf.clij.coremem.ContiguousMemoryInterface
subRegion
-
Methods inherited from interface net.haesleinhuepf.clij.coremem.rgc.Freeable
complainIfFreed
-
Methods inherited from interface net.haesleinhuepf.clij.coremem.interfaces.MappableMemory
force
-
-
-
-
Method Detail
-
map
public abstract long map()
Description copied from interface:MappableMemoryMaps this memory object.- Specified by:
mapin interfaceMappableMemory- Returns:
- mapping address
-
unmap
public abstract void unmap()
Description copied from interface:MappableMemoryUnmaps this memory object.- Specified by:
unmapin interfaceMappableMemory
-
isCurrentlyMapped
public boolean isCurrentlyMapped()
Description copied from interface:MappableMemoryReturns true if this object is mapped, false otherwise.- Specified by:
isCurrentlyMappedin interfaceMappableMemory- Returns:
- true if mapped, false otherwise.
-
setCurrentlyMapped
protected void setCurrentlyMapped(boolean pMapped)
Sets the mapped state of this MappableMemory region.- Parameters:
pMapped- ?
-
-