public enum BytesInternal extends Enum<BytesInternal>
Modifier and Type | Field and Description |
---|---|
static ThreadLocal<ByteBuffer> |
BYTE_BUFFER_TL |
static ThreadLocal<ByteBuffer> |
BYTE_BUFFER2_TL |
static net.openhft.chronicle.core.scoped.ScopedThreadLocal<Bytes<?>> |
BYTES_SCOPED_THREAD_LOCAL |
static StringInternerBytes |
SI |
Modifier and Type | Method and Description |
---|---|
static Bytes<?> |
acquireBytes()
Deprecated.
Use
acquireBytesScoped() instead |
static net.openhft.chronicle.core.scoped.ScopedResource<Bytes<?>> |
acquireBytesScoped()
Acquire a scoped, thread-local bytes instance
|
static StringBuilder |
acquireStringBuilder()
Deprecated.
Use
acquireStringBuilderScoped() instead |
static net.openhft.chronicle.core.scoped.ScopedResource<StringBuilder> |
acquireStringBuilderScoped() |
static double |
addAndGetDouble(@NotNull BytesStore<?,?> in,
long offset,
double adding) |
static float |
addAndGetFloat(@NotNull BytesStore<?,?> in,
long offset,
float adding) |
static int |
addAndGetInt(@NotNull BytesStore<?,?> in,
long offset,
int adding) |
static long |
addAndGetLong(@NotNull BytesStore<?,?> in,
long offset,
long adding) |
static void |
append(@NotNull ByteStringAppender bytesStringAppender,
double d,
int decimalPlaces) |
static void |
append(@NotNull ByteStringAppender out,
long num,
int base) |
static void |
append(@NotNull RandomDataOutput out,
long offset,
long num,
int digits)
The length of the number must be fixed otherwise short numbers will not overwrite longer
numbers
|
static void |
append(@NotNull StreamingDataOutput out,
double d) |
static void |
append8bit(long offsetInRDO,
RandomDataOutput bytes,
@NotNull CharSequence str,
int offset,
int length) |
static void |
appendBase10(@NotNull ByteStringAppender out,
int num) |
static void |
appendBase10(@NotNull ByteStringAppender out,
long num) |
static void |
appendBase16(@NotNull ByteStringAppender out,
long num,
int minDigits) |
static void |
appendDateMillis(@NotNull ByteStringAppender b,
long timeInMS) |
static void |
appendDecimal(@NotNull ByteStringAppender out,
long num,
int decimalPlaces) |
static void |
appendDecimal(@NotNull RandomDataOutput out,
long num,
long offset,
int decimalPlaces,
int width)
Appends given long value with given decimalPlaces to RandomDataOutput out
|
static void |
appendTimeMillis(@NotNull ByteStringAppender b,
long timeInMS) |
static long |
appendUtf8(@NotNull RandomDataOutput out,
long outOffset,
@NotNull CharSequence str,
int strOffset,
int length) |
static void |
appendUtf8(@NotNull StreamingDataOutput bytes,
@NotNull CharSequence str,
int offset,
int length) |
static long |
appendUtf8Char(@NotNull RandomDataOutput out,
long offset,
int c) |
static void |
appendUtf8Char(@NotNull StreamingDataOutput bytes,
int c) |
static ByteBuffer |
asByteBuffer(@NotNull BytesStore bytesStore) |
static ByteBuffer |
asByteBuffer2(@NotNull BytesStore bytesStore) |
static @NotNull Bytes<?> |
asBytes(@NotNull RandomDataOutput bytes,
long position,
long limit) |
static void |
assignBytesStoreToByteBuffer(@NotNull BytesStore bytesStore,
@NotNull ByteBuffer byteBuffer) |
static @NotNull Object |
asSize(long size) |
static boolean |
compareUtf8(@NotNull RandomDataInput input,
long offset,
@Nullable CharSequence other) |
static boolean |
contentEqual(@Nullable BytesStore a,
@Nullable BytesStore b) |
static void |
copy(@NotNull InputStream input,
@NotNull StreamingDataOutput output) |
static void |
copy(@NotNull RandomDataInput input,
@NotNull OutputStream output) |
static void |
copy8bit(BytesStore bs,
long addressForWrite,
long length) |
static void |
copyMemory(long from,
long to,
int length) |
static int |
digitsForExponent(int exponent) |
static boolean |
equalBytesAny(@NotNull BytesStore b1,
@NotNull BytesStore b2,
long readRemaining) |
static <B extends BytesStore<B,U>,U> |
failIfBytesOnBytes(BytesStore<B,U> bytesStore) |
static long |
findByte(@NotNull RandomDataInput bytes,
byte stopByte) |
static @NotNull Bytes<?> |
fromHexString(@NotNull String s) |
static int |
parse8bit_SB1(long offset,
@NotNull NativeBytesStore nbs,
@NotNull StringBuilder sb,
int length) |
static String |
parse8bit(ByteStringParser bsp,
StopCharTester stopCharTester) |
static void |
parse8bit(long offset,
@NotNull RandomDataInput bytesStore,
Appendable appendable,
int utflen) |
static void |
parse8bit(@NotNull StreamingDataInput bytes,
@NotNull Bytes<?> builder,
@NotNull StopCharsTester tester) |
static void |
parse8bit(@NotNull StreamingDataInput bytes,
@NotNull Bytes<?> builder,
@NotNull StopCharTester tester) |
static void |
parse8bit(@NotNull StreamingDataInput bytes,
@NotNull StringBuilder builder,
@NotNull StopCharsTester tester) |
static void |
parse8bit(@NotNull StreamingDataInput bytes,
@NotNull StringBuilder builder,
@NotNull StopCharTester tester) |
static void |
parse8bit1(long offset,
@NotNull RandomDataInput bytes,
@NotNull Appendable appendable,
int utflen) |
static void |
parse8bit1(@NotNull StreamingDataInput bytes,
@NotNull Appendable appendable,
int utflen) |
static void |
parse8bit1(@NotNull StreamingDataInput bytes,
@NotNull StringBuilder sb,
int utflen) |
static Boolean |
parseBoolean(@NotNull ByteStringParser parser,
@NotNull StopCharTester tester) |
static double |
parseDouble(@NotNull StreamingDataInput in) |
static long |
parseFlexibleLong(@NotNull StreamingDataInput in) |
static long |
parseHexLong(@NotNull StreamingDataInput in) |
static long |
parseLong(@NotNull RandomDataInput in,
long offset) |
static long |
parseLong(@NotNull StreamingDataInput in) |
static long |
parseLongDecimal(@NotNull StreamingDataInput in) |
static void |
parseUtf8_SB1(@NotNull Bytes<?> bytes,
@NotNull StringBuilder sb,
boolean utf,
int utflen) |
static void |
parseUtf8_SB1(@NotNull NativeBytesStore bytes,
long offset,
@NotNull StringBuilder sb,
int utflen) |
static void |
parseUtf8(@NotNull RandomDataInput input,
long offset,
Appendable appendable,
boolean utf,
int length) |
static void |
parseUtf8(@NotNull StreamingDataInput bytes,
Appendable appendable,
boolean utf,
int length) |
static void |
parseUtf8(@NotNull StreamingDataInput bytes,
@NotNull Appendable builder,
@NotNull StopCharsTester tester) |
static void |
parseUtf8(@NotNull StreamingDataInput bytes,
@NotNull Appendable builder,
@NotNull StopCharTester tester) |
static @Nullable String |
parseUtf8(@NotNull StreamingDataInput bytes,
@NotNull StopCharTester tester) |
static void |
parseUtf81(@NotNull RandomDataInput input,
long offset,
@NotNull Appendable appendable,
int utflen) |
static void |
parseUtf81(@NotNull StreamingDataInput bytes,
@NotNull Appendable appendable,
boolean utf,
int length) |
static void |
prepend(@NotNull BytesPrepender out,
long num) |
static @Nullable String |
read8bit(@NotNull StreamingDataInput in) |
static <E extends Enum<E>,S extends StreamingDataInput<S>> |
readEnum(@NotNull StreamingDataInput input,
@NotNull Class<E> eClass) |
static void |
readHistogram(@NotNull StreamingDataInput in,
@NotNull net.openhft.chronicle.core.util.Histogram histogram) |
static long |
readStopBit(@NotNull StreamingDataInput in) |
static long |
readStopBit0(@NotNull StreamingDataInput in,
long l) |
static char |
readStopBitChar(@NotNull StreamingDataInput in) |
static double |
readStopBitDouble(@NotNull StreamingDataInput in) |
static @Nullable String |
readUtf8(@NotNull RandomDataInput in,
long offset,
int maxUtf8Len) |
static @Nullable String |
readUtf8(@NotNull StreamingDataInput in) |
static boolean |
skipTo(@NotNull ByteStringParser parser,
@NotNull StopCharTester tester) |
static boolean |
startsWith(@NotNull BytesStore a,
@NotNull BytesStore b) |
static <U extends BytesStore & HasUncheckedRandomDataInput> |
startsWithUnchecked(U a,
@NotNull BytesStore b) |
static int |
stopBitLength0(long n) |
static @NotNull BytesStore |
subBytes(RandomDataInput from,
long start,
long length) |
static String |
to8bitString(@NotNull BytesStore bytes) |
static @NotNull byte[] |
toByteArray(@NotNull RandomDataInput in) |
static String |
toDebugString(@NotNull RandomDataInput bytes,
long maxLength) |
static String |
toHexString(@NotNull Bytes<?> bytes,
long offset,
long maxLength)
Converts the content of the provided Bytes buffer to a hexadecimal string representation
along with comments describing the meaning of the bytes.
|
static @NotNull String |
toString(@NotNull RandomDataInput bytes) |
static BytesInternal |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BytesInternal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static void |
writeFully(@NotNull RandomDataInput bytes,
long offset,
long length,
@NotNull StreamingDataOutput sdo) |
static void |
writeHistogram(@NotNull StreamingDataOutput out,
@NotNull net.openhft.chronicle.core.util.Histogram histogram) |
static long |
writeStopBit(long addr,
long n) |
static long |
writeStopBit(@NotNull RandomDataOutput out,
long offset,
long n) |
static void |
writeStopBit(@NotNull StreamingDataOutput out,
char n) |
static void |
writeStopBit(@NotNull StreamingDataOutput out,
double d) |
static void |
writeStopBit(@NotNull StreamingDataOutput out,
long n) |
static void |
writeStopBit0(@NotNull StreamingDataOutput out,
long n) |
static void |
writeStopBitNeg1(@NotNull StreamingDataOutput out) |
static long |
writeUtf8(@NotNull RandomDataOutput out,
long writeOffset,
@Nullable CharSequence str) |
static long |
writeUtf8(@NotNull RandomDataOutput out,
long offset,
@Nullable CharSequence str,
int maxUtf8Len) |
static void |
writeUtf8(@NotNull StreamingDataOutput bytes,
@Nullable CharSequence str) |
static void |
writeUtf8(@NotNull StreamingDataOutput bytes,
@Nullable String str) |
public static final ThreadLocal<ByteBuffer> BYTE_BUFFER_TL
public static final ThreadLocal<ByteBuffer> BYTE_BUFFER2_TL
public static final net.openhft.chronicle.core.scoped.ScopedThreadLocal<Bytes<?>> BYTES_SCOPED_THREAD_LOCAL
public static final StringInternerBytes SI
public static BytesInternal[] values()
for (BytesInternal c : BytesInternal.values()) System.out.println(c);
public static BytesInternal valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean contentEqual(@Nullable @Nullable BytesStore a, @Nullable @Nullable BytesStore b) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static boolean startsWith(@NotNull @NotNull BytesStore a, @NotNull @NotNull BytesStore b) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static <U extends BytesStore & HasUncheckedRandomDataInput> boolean startsWithUnchecked(@NotNull U a, @NotNull @NotNull BytesStore b)
public static void parseUtf8(@NotNull @NotNull StreamingDataInput bytes, Appendable appendable, boolean utf, int length) throws UTFDataFormatRuntimeException, BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
UTFDataFormatRuntimeException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void parseUtf8(@NotNull @NotNull RandomDataInput input, long offset, Appendable appendable, boolean utf, int length) throws UTFDataFormatRuntimeException, BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
UTFDataFormatRuntimeException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static boolean compareUtf8(@NotNull @NotNull RandomDataInput input, long offset, @Nullable @Nullable CharSequence other) throws net.openhft.chronicle.core.io.IORuntimeException, BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void parse8bit(long offset, @NotNull @NotNull RandomDataInput bytesStore, Appendable appendable, int utflen) throws BufferUnderflowException, IOException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
IOException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void parseUtf81(@NotNull @NotNull StreamingDataInput bytes, @NotNull @NotNull Appendable appendable, boolean utf, int length) throws UTFDataFormatRuntimeException, BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
UTFDataFormatRuntimeException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void parseUtf81(@NotNull @NotNull RandomDataInput input, long offset, @NotNull @NotNull Appendable appendable, int utflen) throws UTFDataFormatRuntimeException, BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
UTFDataFormatRuntimeException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void parse8bit1(@NotNull @NotNull StreamingDataInput bytes, @NotNull @NotNull StringBuilder sb, int utflen) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void parse8bit1(@NotNull @NotNull StreamingDataInput bytes, @NotNull @NotNull Appendable appendable, int utflen) throws net.openhft.chronicle.core.io.ClosedIllegalStateException, IOException
net.openhft.chronicle.core.io.ClosedIllegalStateException
IOException
public static void parse8bit1(long offset, @NotNull @NotNull RandomDataInput bytes, @NotNull @NotNull Appendable appendable, int utflen) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, IOException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
IOException
public static void parseUtf8_SB1(@NotNull @NotNull Bytes<?> bytes, @NotNull @NotNull StringBuilder sb, boolean utf, int utflen) throws UTFDataFormatRuntimeException, BufferUnderflowException
public static void parseUtf8_SB1(@NotNull @NotNull NativeBytesStore bytes, long offset, @NotNull @NotNull StringBuilder sb, int utflen) throws UTFDataFormatRuntimeException, BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
UTFDataFormatRuntimeException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static int parse8bit_SB1(long offset, @NotNull @NotNull NativeBytesStore nbs, @NotNull @NotNull StringBuilder sb, int length)
public static void writeUtf8(@NotNull @NotNull StreamingDataOutput bytes, @Nullable @Nullable String str) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, IllegalArgumentException, BufferUnderflowException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
IllegalArgumentException
BufferUnderflowException
public static void writeUtf8(@NotNull @NotNull StreamingDataOutput bytes, @Nullable @Nullable CharSequence str) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, BufferUnderflowException, IllegalArgumentException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
IllegalArgumentException
public static long writeUtf8(@NotNull @NotNull RandomDataOutput out, long writeOffset, @Nullable @Nullable CharSequence str) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, ArithmeticException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
ArithmeticException
public static long writeUtf8(@NotNull @NotNull RandomDataOutput out, long offset, @Nullable @Nullable CharSequence str, int maxUtf8Len) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, ArithmeticException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
ArithmeticException
@NotNull public static @NotNull Bytes<?> asBytes(@NotNull @NotNull RandomDataOutput bytes, long position, long limit) throws net.openhft.chronicle.core.io.ClosedIllegalStateException, BufferOverflowException, BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferOverflowException
BufferUnderflowException
public static void appendUtf8(@NotNull @NotNull StreamingDataOutput bytes, @NotNull @NotNull CharSequence str, int offset, int length) throws IndexOutOfBoundsException, net.openhft.chronicle.core.io.ClosedIllegalStateException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
IndexOutOfBoundsException
net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ThreadingIllegalStateException
public static long appendUtf8(@NotNull @NotNull RandomDataOutput out, long outOffset, @NotNull @NotNull CharSequence str, int strOffset, int length) throws IndexOutOfBoundsException, BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
IndexOutOfBoundsException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void append8bit(long offsetInRDO, RandomDataOutput bytes, @NotNull @NotNull CharSequence str, int offset, int length) throws IllegalArgumentException, BufferOverflowException, BufferUnderflowException, IndexOutOfBoundsException, net.openhft.chronicle.core.io.ClosedIllegalStateException, ArithmeticException
IllegalArgumentException
BufferOverflowException
BufferUnderflowException
IndexOutOfBoundsException
net.openhft.chronicle.core.io.ClosedIllegalStateException
ArithmeticException
public static void appendUtf8Char(@NotNull @NotNull StreamingDataOutput bytes, int c) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ThreadingIllegalStateException
public static long appendUtf8Char(@NotNull @NotNull RandomDataOutput out, long offset, int c) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void writeStopBitNeg1(@NotNull @NotNull StreamingDataOutput out)
public static void writeStopBit(@NotNull @NotNull StreamingDataOutput out, char n) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ThreadingIllegalStateException
public static long writeStopBit(long addr, long n) throws BufferOverflowException
BufferOverflowException
public static void writeStopBit(@NotNull @NotNull StreamingDataOutput out, long n) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static long writeStopBit(@NotNull @NotNull RandomDataOutput out, long offset, long n) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void writeStopBit(@NotNull @NotNull StreamingDataOutput out, double d) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static double readStopBitDouble(@NotNull @NotNull StreamingDataInput in) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void writeStopBit0(@NotNull @NotNull StreamingDataOutput out, long n) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static int stopBitLength0(long n)
public static String toDebugString(@NotNull @NotNull RandomDataInput bytes, long maxLength) throws net.openhft.chronicle.core.io.ClosedIllegalStateException, ArithmeticException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
net.openhft.chronicle.core.io.ClosedIllegalStateException
ArithmeticException
net.openhft.chronicle.core.io.ThreadingIllegalStateException
@NotNull public static @NotNull Object asSize(long size)
public static String to8bitString(@NotNull @NotNull BytesStore bytes) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ClosedIllegalStateException
@NotNull public static @NotNull String toString(@NotNull @NotNull RandomDataInput bytes)
public static char readStopBitChar(@NotNull @NotNull StreamingDataInput in) throws net.openhft.chronicle.core.io.IORuntimeException, net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static long readStopBit(@NotNull @NotNull StreamingDataInput in) throws net.openhft.chronicle.core.io.IORuntimeException, net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static long readStopBit0(@NotNull @NotNull StreamingDataInput in, long l) throws net.openhft.chronicle.core.io.IORuntimeException, net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void append(@NotNull @NotNull ByteStringAppender out, long num, int base) throws IllegalArgumentException, BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, IndexOutOfBoundsException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
IllegalArgumentException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
IndexOutOfBoundsException
net.openhft.chronicle.core.io.ThreadingIllegalStateException
public static void appendBase10(@NotNull @NotNull ByteStringAppender out, int num) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void appendBase10(@NotNull @NotNull ByteStringAppender out, long num) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void appendBase16(@NotNull @NotNull ByteStringAppender out, long num, int minDigits) throws IllegalArgumentException, BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
IllegalArgumentException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void appendDecimal(@NotNull @NotNull ByteStringAppender out, long num, int decimalPlaces) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, ArithmeticException, IllegalArgumentException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
ArithmeticException
IllegalArgumentException
net.openhft.chronicle.core.io.ThreadingIllegalStateException
public static void prepend(@NotNull @NotNull BytesPrepender out, long num) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void append(@NotNull @NotNull RandomDataOutput out, long offset, long num, int digits) throws BufferOverflowException, IllegalArgumentException, net.openhft.chronicle.core.io.ClosedIllegalStateException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
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 way.BufferOverflowException
IllegalArgumentException
public static void appendDecimal(@NotNull @NotNull RandomDataOutput out, long num, long offset, int decimalPlaces, int width) throws net.openhft.chronicle.core.io.IORuntimeException, IllegalArgumentException, BufferOverflowException, ArithmeticException, net.openhft.chronicle.core.io.ClosedIllegalStateException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
width
- Maximum width. I will be padded with zeros to the left if necessarynet.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 way.net.openhft.chronicle.core.io.IORuntimeException
IllegalArgumentException
BufferOverflowException
ArithmeticException
public static void append(@NotNull @NotNull StreamingDataOutput out, double d) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ThreadingIllegalStateException
public static void append(@NotNull @NotNull ByteStringAppender bytesStringAppender, double d, int decimalPlaces) throws BufferOverflowException, IllegalArgumentException, net.openhft.chronicle.core.io.ClosedIllegalStateException, ArithmeticException
BufferOverflowException
IllegalArgumentException
net.openhft.chronicle.core.io.ClosedIllegalStateException
ArithmeticException
@Nullable public static @Nullable String readUtf8(@NotNull @NotNull StreamingDataInput in) throws BufferUnderflowException, net.openhft.chronicle.core.io.IORuntimeException, net.openhft.chronicle.core.io.ClosedIllegalStateException, ArithmeticException
BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.ClosedIllegalStateException
ArithmeticException
@Nullable public static @Nullable String readUtf8(@NotNull @NotNull RandomDataInput in, long offset, int maxUtf8Len) throws BufferUnderflowException, IllegalArgumentException, net.openhft.chronicle.core.io.ClosedIllegalStateException, net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowException
IllegalArgumentException
net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.IORuntimeException
@Deprecated public static StringBuilder acquireStringBuilder()
acquireStringBuilderScoped()
insteadpublic static net.openhft.chronicle.core.scoped.ScopedResource<StringBuilder> acquireStringBuilderScoped()
@Deprecated public static Bytes<?> acquireBytes()
acquireBytesScoped()
insteadpublic static net.openhft.chronicle.core.scoped.ScopedResource<Bytes<?>> acquireBytesScoped()
@Nullable public static @Nullable String read8bit(@NotNull @NotNull StreamingDataInput in) throws BufferUnderflowException, net.openhft.chronicle.core.io.IORuntimeException, ArithmeticException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeException
ArithmeticException
net.openhft.chronicle.core.io.ClosedIllegalStateException
@Nullable public static @Nullable String parseUtf8(@NotNull @NotNull StreamingDataInput bytes, @NotNull @NotNull StopCharTester tester) throws net.openhft.chronicle.core.io.ClosedIllegalStateException, ArithmeticException
net.openhft.chronicle.core.io.ClosedIllegalStateException
ArithmeticException
public static void parseUtf8(@NotNull @NotNull StreamingDataInput bytes, @NotNull @NotNull Appendable builder, @NotNull @NotNull StopCharTester tester) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, ArithmeticException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
ArithmeticException
public static void parseUtf8(@NotNull @NotNull StreamingDataInput bytes, @NotNull @NotNull Appendable builder, @NotNull @NotNull StopCharsTester tester) throws BufferUnderflowException, net.openhft.chronicle.core.io.IORuntimeException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void parse8bit(@NotNull @NotNull StreamingDataInput bytes, @NotNull @NotNull StringBuilder builder, @NotNull @NotNull StopCharsTester tester) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void parse8bit(@NotNull @NotNull StreamingDataInput bytes, @NotNull @NotNull Bytes<?> builder, @NotNull @NotNull StopCharsTester tester) throws BufferUnderflowException, BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, ArithmeticException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
BufferUnderflowException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
ArithmeticException
net.openhft.chronicle.core.io.ThreadingIllegalStateException
public static void parse8bit(@NotNull @NotNull StreamingDataInput bytes, @NotNull @NotNull StringBuilder builder, @NotNull @NotNull StopCharTester tester) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void parse8bit(@NotNull @NotNull StreamingDataInput bytes, @NotNull @NotNull Bytes<?> builder, @NotNull @NotNull StopCharTester tester) throws BufferUnderflowException, BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, ArithmeticException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
BufferUnderflowException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
ArithmeticException
net.openhft.chronicle.core.io.ThreadingIllegalStateException
public static long parseFlexibleLong(@NotNull @NotNull StreamingDataInput in) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.IORuntimeException
public static double parseDouble(@NotNull @NotNull StreamingDataInput in) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static long parseLong(@NotNull @NotNull StreamingDataInput in) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static long parseLongDecimal(@NotNull @NotNull StreamingDataInput in) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static long parseHexLong(@NotNull @NotNull StreamingDataInput in) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static long parseLong(@NotNull @NotNull RandomDataInput in, long offset) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static boolean skipTo(@NotNull @NotNull ByteStringParser parser, @NotNull @NotNull StopCharTester tester) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static float addAndGetFloat(@NotNull @NotNull BytesStore<?,?> in, long offset, float adding) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static double addAndGetDouble(@NotNull @NotNull BytesStore<?,?> in, long offset, double adding) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static int addAndGetInt(@NotNull @NotNull BytesStore<?,?> in, long offset, int adding) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static long addAndGetLong(@NotNull @NotNull BytesStore<?,?> in, long offset, long adding) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static String toHexString(@NotNull @NotNull Bytes<?> bytes, long offset, long maxLength) throws BufferUnderflowException
The method reads the data from the offset with maxLength of the given bytes. Each line of the output string contains hexadecimal representation of 16 bytes, followed by comments describing the meaning of those bytes.
For example, a buffer containing bytes representing the ASCII string "VMH" would produce an output like this:
c3 76 6d 68 # vmh: b6 03 56 4d 48 # VMH
bytes
- The buffer whose content is to be converted to a hexadecimal string.
Must not be null.offset
- The starting offset within the buffer to begin the hexadecimal conversion.maxLength
- The number of bytes to convert from the buffer.BufferUnderflowException
- If there is not enough data in the buffer.net.openhft.chronicle.core.io.ClosedIllegalStateException
- If the resource has been released or closed.IllegalArgumentException
- If the provided offset or maxLength are negative.public static void appendTimeMillis(@NotNull @NotNull ByteStringAppender b, long timeInMS) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, IllegalArgumentException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
IllegalArgumentException
net.openhft.chronicle.core.io.ThreadingIllegalStateException
public static boolean equalBytesAny(@NotNull @NotNull BytesStore b1, @NotNull @NotNull BytesStore b2, long readRemaining) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void appendDateMillis(@NotNull @NotNull ByteStringAppender b, long timeInMS) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ThreadingIllegalStateException
@NotNull public static <E extends Enum<E>,S extends StreamingDataInput<S>> E readEnum(@NotNull @NotNull StreamingDataInput input, @NotNull @NotNull Class<E> eClass) throws BufferUnderflowException, net.openhft.chronicle.core.io.IORuntimeException, BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, ArithmeticException
BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
ArithmeticException
public static void writeFully(@NotNull @NotNull RandomDataInput bytes, long offset, long length, @NotNull @NotNull StreamingDataOutput sdo) throws BufferUnderflowException, BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
BufferUnderflowException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ThreadingIllegalStateException
public static void copyMemory(long from, long to, int length)
@NotNull public static @NotNull byte[] toByteArray(@NotNull @NotNull RandomDataInput in) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void copy(@NotNull @NotNull RandomDataInput input, @NotNull @NotNull OutputStream output) throws IOException, net.openhft.chronicle.core.io.ClosedIllegalStateException
IOException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void copy(@NotNull @NotNull InputStream input, @NotNull @NotNull StreamingDataOutput output) throws IOException, BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, net.openhft.chronicle.core.io.ThreadingIllegalStateException
IOException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ThreadingIllegalStateException
public static Boolean parseBoolean(@NotNull @NotNull ByteStringParser parser, @NotNull @NotNull StopCharTester tester) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException, ArithmeticException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
ArithmeticException
@NotNull public static @NotNull BytesStore subBytes(RandomDataInput from, long start, long length) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static long findByte(@NotNull @NotNull RandomDataInput bytes, byte stopByte) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void readHistogram(@NotNull @NotNull StreamingDataInput in, @NotNull @NotNull net.openhft.chronicle.core.util.Histogram histogram) throws net.openhft.chronicle.core.io.ClosedIllegalStateException, BufferUnderflowException, ArithmeticException
net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
ArithmeticException
public static void writeHistogram(@NotNull @NotNull StreamingDataOutput out, @NotNull @NotNull net.openhft.chronicle.core.util.Histogram histogram) throws BufferOverflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferOverflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static ByteBuffer asByteBuffer(@NotNull @NotNull BytesStore bytesStore) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static ByteBuffer asByteBuffer2(@NotNull @NotNull BytesStore bytesStore) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void assignBytesStoreToByteBuffer(@NotNull @NotNull BytesStore bytesStore, @NotNull @NotNull ByteBuffer byteBuffer) throws BufferUnderflowException, net.openhft.chronicle.core.io.ClosedIllegalStateException
BufferUnderflowException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static String parse8bit(ByteStringParser bsp, StopCharTester stopCharTester) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static void copy8bit(BytesStore bs, long addressForWrite, long length) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
net.openhft.chronicle.core.io.ClosedIllegalStateException
public static int digitsForExponent(int exponent)
public static <B extends BytesStore<B,U>,U> BytesStore<B,U> failIfBytesOnBytes(BytesStore<B,U> bytesStore)
Copyright © 2024. All rights reserved.