public class GuardedNativeBytes<Underlying> extends NativeBytes<Underlying>
NativeBytes.NativeSubBytes
bytesStore, isPresent, readPosition, writeLimit, writePosition
referenceCounted, WARN_COUNT, WARN_NS
DEFAULT_BYTE_BUFFER_CAPACITY, MAX_BYTE_BUFFER_CAPACITY, MAX_CAPACITY, MAX_HEAP_CAPACITY
charToString
JAVA9_STRING_CODER_LATIN, JAVA9_STRING_CODER_UTF16
Constructor and Description |
---|
GuardedNativeBytes(@NotNull BytesStore store,
long capacity) |
Modifier and Type | Method and Description |
---|---|
byte |
rawReadByte() |
int |
rawReadInt() |
Bytes<Underlying> |
rawWriteByte(byte i8) |
Bytes<Underlying> |
rawWriteInt(int i) |
byte |
readByte() |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
long |
readStopBit() |
char |
readStopBitChar() |
int |
readUnsignedByte() |
@NotNull Bytes<Underlying> |
writeByte(byte i8) |
@NotNull Bytes<Underlying> |
writeDouble(double d) |
@NotNull Bytes<Underlying> |
writeFloat(float f) |
@NotNull Bytes<Underlying> |
writeInt(int i) |
@NotNull Bytes |
writeLong(long i64)
Write a long
|
@NotNull Bytes<Underlying> |
writeShort(short i16) |
@NotNull Bytes<Underlying> |
writeStopBit(char x) |
@NotNull Bytes<Underlying> |
writeStopBit(long x)
Write a stop bit encoded long
|
areNewGuarded, bytesStore, bytesStore, capacity, copyOf, ensureCapacity, isElastic, isEqual, maxCapacityFor, nativeBytes, nativeBytes, readRemaining, resetNewGuarded, setNewGuarded, wrapWithNativeBytes, writeCheckOffset, writeOffsetPositionMoved, writeSome
append, append8bit, append8bit, append8bit, append8bit0, appendUtf8, appendUtf8, byteCheckSum, bytesForRead, compareTo, copy, equalBytes, isEqual, maxSize, offset, optimisedWrite, read, read8Bit, readVolatileLong, realCapacity, toString, toString0, toTemporaryDirectByteBuffer, vanillaBytes, write, write, write
addressForRead, addressForWrite, addressForWritePosition, append, byteCheckSum, byteCheckSum, bytesStore, canReadDirect, canWriteDirect, clear, clearAndPad, compact, compareAndSwapInt, compareAndSwapLong, equals, hashCode, isDirectMemory, lastDecimalPlaces, lastDecimalPlaces, lastNumberHadDigits, lastNumberHadDigits, lenient, lenient, move, nativeRead, nativeWrite, peekUnsignedByte, peekUnsignedByte, performRelease, prewrite, prewrite, prewriteByte, prewriteInt, prewriteLong, prewriteOffsetPositionMoved, prewriteShort, read, read, readByte, readDouble, readFloat, readInt, readLimit, readLimit, readLong, readOffsetPositionMoved, readPosition, readPosition, readShort, readSkip, readUnsignedByte, readVolatileByte, readVolatileInt, readVolatileInt, readVolatileLong, readVolatileShort, realWriteRemaining, safeCopySize, start, testAndSetInt, uncheckedReadSkipBackOne, uncheckedReadSkipOne, uncheckedReadUnsignedByte, uncheckedWritePosition, underlyingObject, write, write, write, write, write, write8bit, write8bit, write8bit, write8bit, writeByte, writeDouble, writeDoubleAndInt, writeFloat, writeInt, writeIntAdv, writeLimit, writeLimit, writeLong, writeLongAdv, writeOffsetPositionMoved, writeOrderedInt, writeOrderedInt, writeOrderedLong, writeOrderedLong, writePosition, writePosition, writeShort, writeSkip, writeSome, writeVolatileByte, writeVolatileInt, writeVolatileLong, writeVolatileShort
assertReferencesReleased, clearUsedByThread, createdHere, disableReferenceTracing, enableReferenceTracing, performReleaseInBackground, refCount, referenceId, release, releaseLast, reserve, reservedBy, reserveTransfer, threadSafetyCheck, throwExceptionIfNotReleased, throwExceptionIfReleased, tryReserve, unmonitor, warnAndReleaseIfNotReleased
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
bytesStore, lock, tryLock
allocateDirect, allocateDirect, allocateElasticDirect, allocateElasticDirect, allocateElasticOnHeap, allocateElasticOnHeap, copyTo, copyTo, directFrom, elasticByteBuffer, elasticByteBuffer, elasticByteBuffer, elasticHeapByteBuffer, elasticHeapByteBuffer, forFieldGroup, from, from, fromDirect, fromHexString, fromString, indexOf, indexOf, indexOf, indexOf, isClear, readBigDecimal, readBigInteger, readMarshallableLength16, readWithLength, readWrite, safeLimit, sharedMemory, toHexString, toHexString, toHexString, toString, toString, toString, unchecked, unchecked, unwrite, valueOf, wrapForRead, wrapForRead, wrapForWrite, wrapForWrite, write, writeMarshallableLength16
addAndGetDoubleNotAtomic, addAndGetFloatNotAtomic, addAndGetIntNotAtomic, addAndGetShortNotAtomic, addAndGetUnsignedByteNotAtomic, bytesForWrite, charAt, cipher, cipher, contentEquals, elasticByteBuffer, empty, endsWith, forFields, from, hash, inside, inside, isEmpty, lazyNativeBytesStoreWithFixedCapacity, length, nativePointer, nativeStore, nativeStoreWithFixedCapacity, startsWith, startsWith, subSequence, to8bitString, toDebugString, toDebugString, wrap, wrap, wrap, writeMaxInt, writeMaxLong, zeroOut
append, append, write, write, writeBoolean, writeByte, writeInt24, writeOrderedDouble, writeOrderedFloat, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort, writeUtf8, writeUtf8Limited, writeVolatileDouble, writeVolatileFloat
chars, codePoints
bytesMethodReader, bytesMethodReaderBuilder, readObject
addAndGetDouble, addAndGetFloat, addAndGetInt, addAndGetLong, compareUtf8, copyTo, copyTo, createCharToString, fastHash, findByte, parseLong, peekVolatileInt, printable, readBoolean, readIncompleteLong, readUnsignedInt, readUnsignedInt24, readUnsignedShort, readUtf8, readUtf8Limited, readUtf8Limited, readVolatileDouble, readVolatileFloat, subBytes, toByteArray
parse8bit, parse8bit, parse8bit, parse8bit, parse8bit, parseBigDecimal, parseBoolean, parseBoolean, parseDouble, parseFloat, parseInt, parseLong, parseLongDecimal, parseUTF, parseUTF, parseUTF, parseUtf8, parseUtf8, parseUtf8, reader, skipTo
inputStream, parseHexLong, parseUTF, parseUtf8, parseUtf8, rawReadLong, read, read, read, read, read8bit, read8bit, read8bit, read8bit, readBoolean, readChar, readEnum, readHistogram, readIncompleteLong, readInt24, readLimitToCapacity, readPositionForHeader, readPositionRemaining, readPositionUnlimited, readStopBitDecimal, readStopBitDouble, readUnsignedInt, readUnsignedInt24, readUnsignedShort, readUtf8, readUtf8, readUtf8, readUtf8, readUTFΔ, readUTFΔ, readWithLength, readWithLength, readWithLength0, unsafeRead, unsafeReadObject, unsafeReadObject
bytesMethodWriter, writeObject
append, append, append, append, append, append, append, append, append8bit, append8bit, appendBase, appendBase16, appendBase16, appendDateMillis, appendDecimal, appendTimeMillis, writer
alignBy, appendUtf8, appendUtf8, appendUtf8, appendUtf8, copyFrom, outputStream, rawWriteLong, unsafeWrite, unsafeWriteObject, unsafeWriteObject, write, write, write, write, write8bit, write8bit, write8bit, writeBigDecimal, writeBigInteger, writeBoolean, writeChar, writeEnum, writeHistogram, writeInt24, writePositionForHeader, writePositionRemaining, writeStopBit, writeStopBitDecimal, writeUnsignedByte, writeUnsignedInt, writeUnsignedInt24, writeUnsignedShort, writeUtf8, writeUtf8, writeUTFΔ, writeWithLength
prepend
comment, indent, retainsComments
public GuardedNativeBytes(@NotNull @NotNull BytesStore store, long capacity) throws IllegalStateException, IllegalArgumentException
@NotNull public @NotNull Bytes<Underlying> writeByte(byte i8) throws BufferOverflowException, IllegalStateException
writeByte
in interface StreamingDataOutput<Bytes<Underlying>>
writeByte
in class NativeBytes<Underlying>
BufferOverflowException
IllegalStateException
public Bytes<Underlying> rawWriteByte(byte i8) throws BufferOverflowException, IllegalStateException
public Bytes<Underlying> rawWriteInt(int i) throws BufferOverflowException, IllegalStateException
public byte readByte() throws IllegalStateException
readByte
in interface StreamingDataInput<Bytes<Underlying>>
readByte
in class AbstractBytes<Underlying>
IllegalStateException
public byte rawReadByte() throws IllegalStateException
IllegalStateException
public int rawReadInt() throws IllegalStateException, BufferUnderflowException
public int readUnsignedByte() throws IllegalStateException
readUnsignedByte
in interface StreamingDataInput<Bytes<Underlying>>
readUnsignedByte
in class AbstractBytes<Underlying>
IllegalStateException
@NotNull public @NotNull Bytes<Underlying> writeShort(short i16) throws BufferOverflowException, IllegalStateException
writeShort
in interface StreamingDataOutput<Bytes<Underlying>>
writeShort
in class AbstractBytes<Underlying>
BufferOverflowException
IllegalStateException
public short readShort() throws BufferUnderflowException, IllegalStateException
readShort
in interface StreamingDataInput<Bytes<Underlying>>
readShort
in class AbstractBytes<Underlying>
BufferUnderflowException
IllegalStateException
@NotNull public @NotNull Bytes<Underlying> writeStopBit(char x) throws BufferOverflowException, IllegalStateException
@NotNull public @NotNull Bytes<Underlying> writeStopBit(long x) throws BufferOverflowException, IllegalStateException
StreamingDataOutput
x
- long to writeBufferOverflowException
IllegalStateException
public long readStopBit() throws net.openhft.chronicle.core.io.IORuntimeException, IllegalStateException, BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeException
IllegalStateException
BufferUnderflowException
public char readStopBitChar() throws net.openhft.chronicle.core.io.IORuntimeException, IllegalStateException, BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeException
IllegalStateException
BufferUnderflowException
@NotNull public @NotNull Bytes<Underlying> writeInt(int i) throws BufferOverflowException, IllegalStateException
writeInt
in interface StreamingDataOutput<Bytes<Underlying>>
writeInt
in class AbstractBytes<Underlying>
BufferOverflowException
IllegalStateException
public int readInt() throws BufferUnderflowException, IllegalStateException
readInt
in interface StreamingDataInput<Bytes<Underlying>>
readInt
in class AbstractBytes<Underlying>
BufferUnderflowException
IllegalStateException
@NotNull public @NotNull Bytes writeLong(long i64) throws BufferOverflowException, IllegalStateException
StreamingDataOutput
writeLong
in interface StreamingDataOutput<Bytes<Underlying>>
writeLong
in class NativeBytes<Underlying>
BufferOverflowException
IllegalStateException
public long readLong() throws BufferUnderflowException, IllegalStateException
readLong
in interface StreamingDataInput<Bytes<Underlying>>
readLong
in class AbstractBytes<Underlying>
BufferUnderflowException
IllegalStateException
@NotNull public @NotNull Bytes<Underlying> writeFloat(float f) throws BufferOverflowException, IllegalStateException
writeFloat
in interface StreamingDataOutput<Bytes<Underlying>>
writeFloat
in class AbstractBytes<Underlying>
BufferOverflowException
IllegalStateException
public float readFloat() throws BufferUnderflowException, IllegalStateException
readFloat
in interface StreamingDataInput<Bytes<Underlying>>
readFloat
in class AbstractBytes<Underlying>
BufferUnderflowException
IllegalStateException
@NotNull public @NotNull Bytes<Underlying> writeDouble(double d) throws BufferOverflowException, IllegalStateException
writeDouble
in interface StreamingDataOutput<Bytes<Underlying>>
writeDouble
in class AbstractBytes<Underlying>
BufferOverflowException
IllegalStateException
public double readDouble() throws BufferUnderflowException, IllegalStateException
readDouble
in interface StreamingDataInput<Bytes<Underlying>>
readDouble
in class AbstractBytes<Underlying>
BufferUnderflowException
IllegalStateException
Copyright © 2021. All rights reserved.