public class PointerBytesStore extends net.openhft.chronicle.bytes.internal.NativeBytesStore<Void>
NativeBytesStore providing a view over externally managed memory.
Not suitable for elastic bytes.address, limit, maximumLimit, memory| Constructor and Description |
|---|
PointerBytesStore()
Constructs a store with no associated memory.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull VanillaBytes<Void> |
bytesForWrite()
Returns a new VanillaBytes for writing to this PointerBytesStore.
|
long |
safeLimit()
Returns the safe limit of the memory to which this PointerBytesStore can write or read.
|
void |
set(long address,
long capacity)
Points this store at a new memory region.
|
long |
start()
Returns the starting address of the memory to which this PointerBytesStore points.
|
addressForRead, addressForWrite, addressForWritePosition, appendAndReturnLength, appendUtf8, backgroundPerformRelease, byteCheckSum, byteCheckSum, canReadDirect, capacity, compareAndSwapInt, compareAndSwapLong, copy, copyTo, copyToDirect, elasticByteBuffer, elasticByteBuffer, equals, fastHash, follow, from, from, hashCode, isDirectMemory, isEqual, lazyNativeBytesStoreWithFixedCapacity, move, nativeRead, nativeStore, nativeStoreWithFixedCapacity, nativeWrite, peekUnsignedByte, performRelease, read, read8bit, readByte, readDouble, readFloat, readIncompleteLong, readInt, readLong, readShort, readUnsignedByte, readVolatileByte, readVolatileInt, readVolatileLong, readVolatileShort, realCapacity, reverseBytesFrom, setAddress, sharedMemory, testAndSetInt, toString, toTemporaryDirectByteBuffer, translate, underlyingObject, uninitialized, wrap, write, write, write, write0, write8bit, write8bit, writeByte, writeDouble, writeFloat, writeInt, writeLong, writeOrderedInt, writeOrderedLong, writeShort, writeVolatileByte, writeVolatileInt, writeVolatileLong, writeVolatileShort, zeroOutcanReleaseInBackground, readPosition, readRemaining, writeRemainingaddReferenceChangeListener, assertReferencesReleased, createdHere, disableReferenceTracing, enableReferenceTracing, refCount, referenceCountedUnmonitored, referenceId, release, releaseLast, removeReferenceChangeListener, reserve, reserveTransfer, singleThreadedCheckDisabled, singleThreadedCheckReset, threadSafetyCheck, throwExceptionIfNotReleased, throwExceptionIfReleased, tryReserve, unmonitor, unmonitor, warnAndReleaseIfNotReleasedclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAndGetDouble, addAndGetDoubleNotAtomic, addAndGetFloat, addAndGetFloatNotAtomic, addAndGetInt, addAndGetIntNotAtomic, addAndGetLong, addAndGetShortNotAtomic, addAndGetUnsignedByteNotAtomic, bytesForRead, bytesStore, charAt, cipher, cipher, compareAndSwapDouble, compareAndSwapFloat, contentEquals, copyTo, empty, endsWith, equalBytes, forFields, from, from, hash, inside, inside, isClear, isEmpty, length, nativePointer, nativeStoreFrom, readWrite, startsWith, startsWith, subSequence, to8bitString, toDebugString, toDebugString, toUtf8String, wrap, wrap, writeMaxInt, writeMaxLongcanReadDirect, compareUtf8, copyTo, copyTo, findByte, parseLong, peekVolatileInt, printable, readBoolean, readUnsignedInt, readUnsignedInt24, readUnsignedShort, readUtf8, readUtf8Limited, readUtf8Limited, readVolatileDouble, readVolatileFloat, subBytes, toByteArrayappend, append, write, write, writeBoolean, writeByte, writeInt24, writeOrderedDouble, writeOrderedFloat, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort, writeUtf8, writeUtf8Limited, writeVolatileDouble, writeVolatileFloataddressForRead, byteOrder, lengthWritten, readLimit, realReadRemaining, realWriteRemaining, writeLimit, writePositionaddReferenceChangeListener, refCount, release, releaseLast, releaseLast, removeReferenceChangeListener, reserve, reserveTransfer, tryReservereferenceId, referenceName, temporarychars, codePointspublic PointerBytesStore()
public void set(long address,
long capacity)
throws IllegalArgumentException
IllegalArgumentException@NotNull public @NotNull VanillaBytes<Void> bytesForWrite() throws IllegalStateException
bytesForWrite in interface BytesStore<net.openhft.chronicle.bytes.internal.NativeBytesStore<Void>,Void>bytesForWrite in interface RandomCommonbytesForWrite in class net.openhft.chronicle.bytes.internal.NativeBytesStore<Void>net.openhft.chronicle.core.io.ClosedIllegalStateException - If the resource has been released or closed.net.openhft.chronicle.core.io.ThreadingIllegalStateException - If this resource was accessed by multiple threads in an unsafe wayIllegalStateExceptionpublic long safeLimit()
safeLimit in interface BytesStore<net.openhft.chronicle.bytes.internal.NativeBytesStore<Void>,Void>safeLimit in class net.openhft.chronicle.bytes.internal.NativeBytesStore<Void>public long start()
start in interface RandomCommonstart in class net.openhft.chronicle.bytes.internal.AbstractBytesStore<net.openhft.chronicle.bytes.internal.NativeBytesStore<Void>,Void>Copyright © 2026 Chronicle Software Ltd. All rights reserved.