protected class BinaryWire.FixedBinaryValueOut extends Object implements ValueOut
ValueOut.MapMarshaller<K,V>MM_TL, SMALL_MESSAGE, ZEROS_64| Modifier | Constructor and Description |
|---|---|
protected |
FixedBinaryValueOut() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull WireOut |
bool(@Nullable Boolean flag)
Write a boolean value.
|
@NotNull WireOut |
boolForBinding(boolean value,
@NotNull net.openhft.chronicle.core.values.BooleanValue booleanValue)
Writes a boolean value for binding with the given BooleanValue.
|
@NotNull WireOut |
bytes(@NotNull byte[] fromBytes)
Write a sequence of bytes.
|
@NotNull WireOut |
bytes(@Nullable net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes)
Write a sequence of bytes based on the content of a
BytesStore object. |
@NotNull WireOut |
bytes(String type,
@NotNull byte[] fromBytes)
Write a typed sequence of bytes.
|
@NotNull WireOut |
bytes(String type,
@Nullable net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes)
Write a typed sequence of bytes based on the content of a
BytesStore object. |
void |
bytes0(@NotNull net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes,
long remaining)
Writes bytes from the given BytesStore to the byte storage.
|
@NotNull WireOut |
bytesLiteral(@Nullable net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes)
Write a sequence of bytes from a
BytesStore object as a literal value,
if supported by the wire type. |
WireOut |
bytesMarshallable(net.openhft.chronicle.bytes.WriteBytesMarshallable object)
Serialize an object implementing the WriteBytesMarshallable interface.
|
net.openhft.chronicle.core.pool.ClassLookup |
classLookup()
Provides a lookup mechanism to resolve class names.
|
int |
compressedSize() |
@NotNull WireOut |
date(@NotNull LocalDate localDate)
Write a date value.
|
@NotNull WireOut |
dateTime(@NotNull LocalDateTime localDateTime)
Write a local date-time value, which represents both date and time without a time zone.
|
void |
elementSeparator()
Signifies the end of an element that has been added direcftly to the wire.
|
@NotNull WireOut |
fixedFloat32(float f)
Serialize a float value prefixed with its type.
|
@NotNull WireOut |
fixedFloat64(double d)
Serialize a double value.
|
@NotNull WireOut |
fixedInt16(short i16)
Serialize a short (signed 16-bit) value prefixed with its type.
|
@NotNull WireOut |
fixedInt32(int i32)
Serialize an int (signed 32-bit) value prefixed with its type.
|
@NotNull WireOut |
fixedInt64(long i64)
Serialize a long (signed 64-bit) value.
|
@NotNull WireOut |
fixedInt8(byte i8)
Serialize a byte (signed 8-bit) value prefixed with its type.
|
@NotNull WireOut |
fixedOrderedInt32(int i32)
Writes a 32-bit integer value to the byte storage in an order-preserving binary format.
|
@NotNull WireOut |
float32(float f)
Write a 32-bit floating-point value.
|
@NotNull WireOut |
float64(double d)
Write a 64-bit floating-point value, also known as a double.
|
@NotNull WireOut |
int128forBinding(long value,
long value2)
Throws an unsupported operation exception by default.
|
@NotNull WireOut |
int128forBinding(long i64x0,
long i64x1,
net.openhft.chronicle.core.values.TwoLongValue longValue)
Write two signed 64-bit integer values bound to a TwoLongValue object.
|
@NotNull WireOut |
int16(short i16)
Write a signed 16-bit integer value.
|
@NotNull WireOut |
int32(int i32)
Write a signed 32-bit integer value.
|
@NotNull WireOut |
int32forBinding(int value)
Writes a 32-bit integer for binding.
|
@NotNull WireOut |
int32forBinding(int value,
@NotNull net.openhft.chronicle.core.values.IntValue intValue)
Writes a 32-bit integer for binding with the given IntValue.
|
@NotNull WireOut |
int64_0x(long i64)
Write a signed 64-bit integer value as a hexadecimal representation.
|
@NotNull WireOut |
int64(long i64)
Write a signed 64-bit integer value.
|
@NotNull WireOut |
int64array(long capacity)
Allocate space for writing an array of 64-bit integers.
|
@NotNull WireOut |
int64array(long capacity,
@NotNull net.openhft.chronicle.core.values.LongArrayValues values)
Write a sequence of 64-bit integers into an array, using the provided LongArrayValues
object as the source of the values.
|
@NotNull WireOut |
int64forBinding(long value)
Writes a 64-bit integer for binding.
|
@NotNull WireOut |
int64forBinding(long value,
@NotNull net.openhft.chronicle.core.values.LongValue longValue)
Writes a 64-bit integer for binding with the given LongValue.
|
@NotNull WireOut |
int8(byte i8)
Write a signed 8-bit integer value.
|
@NotNull WireOut |
map(Map map)
Writes the contents of a specified map to the wire output.
|
@NotNull WireOut |
marshallable(@NotNull Serializable object)
Writes a value that implements the
Serializable interface to the wire output. |
@NotNull WireOut |
marshallable(@NotNull WriteMarshallable object)
Writes a value that implements the
WriteMarshallable interface to the wire output. |
@NotNull WireOut |
nu11()
Write a null value.
|
@NotNull WireOut |
rawBytes(@NotNull byte[] value)
Write a raw sequence of bytes.
|
void |
resetState() |
<T> @NotNull WireOut |
sequence(T t,
@NotNull BiConsumer<T,ValueOut> writer)
Writes a sequence of values using the provided writer.
|
<T,K> @NotNull WireOut |
sequence(T t,
K kls,
@NotNull TriConsumer<T,K,ValueOut> writer)
Writes a sequence of values using the provided parametrized writer.
|
@NotNull WireOut |
text(@Nullable net.openhft.chronicle.bytes.BytesStore<?,?> s)
Write a text value based on the contents of a
BytesStore object. |
@NotNull WireOut |
text(@Nullable CharSequence s)
Write a text value.
|
@NotNull WireOut |
text(@Nullable String s)
Write a text value.
|
@NotNull WireOut |
time(@NotNull LocalTime localTime)
Write a local time value.
|
@NotNull WireOut |
typeLiteral(@NotNull BiConsumer<Class,net.openhft.chronicle.bytes.Bytes<?>> typeTranslator,
@Nullable Class<?> type)
Writes a type literal using the specified type translator function.
|
@NotNull WireOut |
typeLiteral(CharSequence typeName)
Write a type literal value.
|
@NotNull WireOut |
typeLiteral(@Nullable Class<?> type)
Write a type literal for a specified
Class. |
@NotNull ValueOut |
typePrefix(CharSequence typeName)
Write a prefix that denotes a type for the upcoming value.
|
@NotNull WireOut |
uint16checked(int u16)
Write an unsigned 16-bit integer value.
|
@NotNull WireOut |
uint32checked(long u32)
Write an unsigned 32-bit integer value.
|
@NotNull WireOut |
uint8checked(int u8)
Write an unsigned 8-bit integer value.
|
@NotNull WireOut |
utf8(int codepoint)
Write a single 16-bit Unicode codepoint as UTF-8.
|
@NotNull WireOut |
uuid(@NotNull UUID uuid)
Writes a universally unique identifier (UUID) to the wire.
|
@NotNull WireOut |
wireOut() |
@NotNull ValueOut |
writeLength(long length)
Write the length of a value if supported by the implementing class.
|
@NotNull WireOut |
zonedDateTime(@NotNull ZonedDateTime zonedDateTime)
Write a zoned date-time value, which includes information about date, time, and the
associated time zone.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitarray, array, array, array, array, array, array, arrayDelta, arrayDelta, asEnum, character, collection, compress, endTypePrefix, float32, float64, int16, int32, int32, int64, int8, isAnEnum, isBinary, list, list, marshallable, marshallable, object, object, optionalTyped, rawText, resetBetweenDocuments, sequence, sequence, sequenceWithLength, set, set, swapLeaf, text, throwable, typedMarshallable, typedMarshallable, typedMarshallable, typedScalar, typeLiteral, typePrefix, uint16, uint32, uint8, untypedObject, writeBoolean, writeByte, writeChar, writeDouble, writeFloat, writeInt, writeInt, writeLong, writeLong, writeShort, writeString@NotNull public @NotNull WireOut bool(@Nullable @Nullable Boolean flag)
ValueOut@NotNull public @NotNull WireOut nu11()
ValueOut@NotNull public @NotNull WireOut text(@Nullable @Nullable CharSequence s)
ValueOut@NotNull public @NotNull WireOut text(@Nullable @Nullable String s)
ValueOutValueOut.text(CharSequence).@NotNull public @NotNull WireOut text(@Nullable @Nullable net.openhft.chronicle.bytes.BytesStore<?,?> s)
ValueOutBytesStore object.
The method casts the BytesStore to a CharSequence for processing.@NotNull public @NotNull WireOut bytes(@Nullable @Nullable net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes)
ValueOutBytesStore object.@NotNull public @NotNull WireOut bytesLiteral(@Nullable @Nullable net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes)
ValueOutBytesStore object as a literal value,
if supported by the wire type. If not supported, this method defaults to ValueOut.bytes(BytesStore).bytesLiteral in interface ValueOutfromBytes - The BytesStore containing the byte sequence to be written as a literal.public int compressedSize()
compressedSize in interface ValueOutpublic void bytes0(@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes,
long remaining)
It first writes the length of the bytes and then the bytes themselves. This method ensures the U8_ARRAY code is prefixed before the actual byte data.
fromBytes - The source of the bytes to be written.remaining - The number of bytes to be written.@NotNull public @NotNull WireOut rawBytes(@NotNull @NotNull byte[] value)
ValueOut@NotNull public @NotNull ValueOut writeLength(long length)
ValueOutwriteLength in interface ValueOutlength - The length of the value to be written.@NotNull public @NotNull WireOut bytes(@NotNull @NotNull byte[] fromBytes)
ValueOut@NotNull public @NotNull WireOut bytes(String type, @Nullable @Nullable net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes)
ValueOutBytesStore object.@NotNull public @NotNull WireOut bytes(String type, @NotNull @NotNull byte[] fromBytes)
ValueOut@NotNull public @NotNull WireOut int8(byte i8)
ValueOut@NotNull public @NotNull WireOut fixedInt8(byte i8)
ValueOut@NotNull public @NotNull WireOut uint8checked(int u8)
ValueOutuint8checked in interface ValueOutu8 - The unsigned 8-bit integer value to be written.@NotNull public @NotNull WireOut int16(short i16)
ValueOut@NotNull public @NotNull WireOut fixedInt16(short i16)
ValueOutfixedInt16 in interface ValueOut@NotNull public @NotNull WireOut uint16checked(int u16)
ValueOutuint16checked in interface ValueOutu16 - The unsigned 16-bit integer value to be written.@NotNull public @NotNull WireOut utf8(int codepoint)
ValueOut@NotNull public @NotNull WireOut int32(int i32)
ValueOut@NotNull public @NotNull WireOut fixedInt32(int i32)
ValueOutfixedInt32 in interface ValueOut@NotNull public @NotNull WireOut fixedOrderedInt32(int i32)
Additionally, if hex dump description is retained, it writes a hex dump description.
i32 - The 32-bit integer value to be written.@NotNull public @NotNull WireOut uint32checked(long u32)
ValueOutuint32checked in interface ValueOutu32 - The unsigned 32-bit integer value to be written.@NotNull public @NotNull WireOut int64(long i64)
ValueOut@NotNull public @NotNull WireOut fixedInt64(long i64)
ValueOutfixedInt64 in interface ValueOut@NotNull public @NotNull WireOut int64_0x(long i64)
ValueOut@NotNull public @NotNull WireOut int64array(long capacity)
ValueOutint64array in interface ValueOutcapacity - The desired capacity of the 64-bit integer array.@NotNull public @NotNull WireOut int128forBinding(long value, long value2)
ValueOutint128forBinding in interface ValueOut@NotNull public @NotNull WireOut int64array(long capacity, @NotNull @NotNull net.openhft.chronicle.core.values.LongArrayValues values)
ValueOutint64array in interface ValueOutcapacity - The desired capacity of the 64-bit integer array.values - The LongArrayValues object containing the 64-bit integers to be written.@NotNull public @NotNull WireOut float32(float f)
ValueOut@NotNull public @NotNull WireOut fixedFloat32(float f)
ValueOutfixedFloat32 in interface ValueOut@NotNull public @NotNull WireOut float64(double d)
ValueOut@NotNull public @NotNull WireOut fixedFloat64(double d)
ValueOutfixedFloat64 in interface ValueOut@NotNull public @NotNull WireOut time(@NotNull @NotNull LocalTime localTime)
ValueOut@NotNull public @NotNull WireOut zonedDateTime(@NotNull @NotNull ZonedDateTime zonedDateTime)
ValueOutzonedDateTime in interface ValueOutzonedDateTime - The ZonedDateTime instance to be written.@NotNull public @NotNull WireOut date(@NotNull @NotNull LocalDate localDate)
ValueOut@NotNull public @NotNull WireOut dateTime(@NotNull @NotNull LocalDateTime localDateTime)
ValueOut@NotNull public @NotNull ValueOut typePrefix(CharSequence typeName)
ValueOuttypePrefix in interface ValueOuttypeName - The name of the type as a CharSequence.public net.openhft.chronicle.core.pool.ClassLookup classLookup()
ValueOutclassLookup in interface ValueOut@NotNull public @NotNull WireOut typeLiteral(CharSequence typeName)
ValueOuttypeLiteral in interface ValueOuttypeName - The type name as a CharSequence.@NotNull public @NotNull WireOut typeLiteral(@Nullable @Nullable Class<?> type)
ValueOutClass. If the class is null, a null value
is written. This is used to denote type information directly in the wire format.typeLiteral in interface ValueOuttype - The Class object for which to write a type literal.@NotNull public @NotNull WireOut typeLiteral(@NotNull @NotNull BiConsumer<Class,net.openhft.chronicle.bytes.Bytes<?>> typeTranslator, @Nullable @Nullable Class<?> type)
ValueOuttypeLiteral in interface ValueOuttypeTranslator - A bi-consumer function to transform the Class object into a byte representation.type - The Class object to be translated.@NotNull public @NotNull WireOut uuid(@NotNull @NotNull UUID uuid)
ValueOut@NotNull public @NotNull WireOut int32forBinding(int value)
ValueOutint32forBinding in interface ValueOut@NotNull public @NotNull WireOut int64forBinding(long value)
ValueOutint64forBinding in interface ValueOut@NotNull public @NotNull WireOut int32forBinding(int value, @NotNull @NotNull net.openhft.chronicle.core.values.IntValue intValue)
ValueOutint32forBinding in interface ValueOut@NotNull public @NotNull WireOut int64forBinding(long value, @NotNull @NotNull net.openhft.chronicle.core.values.LongValue longValue)
ValueOutint64forBinding in interface ValueOut@NotNull public @NotNull WireOut boolForBinding(boolean value, @NotNull @NotNull net.openhft.chronicle.core.values.BooleanValue booleanValue)
ValueOutboolForBinding in interface ValueOut@NotNull public @NotNull WireOut int128forBinding(long i64x0, long i64x1, net.openhft.chronicle.core.values.TwoLongValue longValue)
ValueOutint128forBinding in interface ValueOuti64x0 - The first 64-bit integer value.i64x1 - The second 64-bit integer value.longValue - The TwoLongValue object to which the values are bound.@NotNull public <T> @NotNull WireOut sequence(T t, @NotNull @NotNull BiConsumer<T,ValueOut> writer)
ValueOut@NotNull public <T,K> @NotNull WireOut sequence(T t, K kls, @NotNull @NotNull TriConsumer<T,K,ValueOut> writer) throws net.openhft.chronicle.core.io.InvalidMarshallableException
ValueOutsequence in interface ValueOutt - The primary input to be consumed by the writer.kls - A secondary input parameter for the writer.writer - A tri-consumer that writes values using the given ValueOut instance and additional parameter.net.openhft.chronicle.core.io.InvalidMarshallableException - When there's an issue marshalling the data.@NotNull public @NotNull WireOut marshallable(@NotNull @NotNull WriteMarshallable object) throws net.openhft.chronicle.core.io.InvalidMarshallableException
ValueOutWriteMarshallable interface to the wire output.marshallable in interface ValueOutobject - The WriteMarshallable object to be written.net.openhft.chronicle.core.io.InvalidMarshallableException - If the object cannot be marshalled.public WireOut bytesMarshallable(net.openhft.chronicle.bytes.WriteBytesMarshallable object) throws net.openhft.chronicle.core.io.InvalidMarshallableException
ValueOutbytesMarshallable in interface ValueOutnet.openhft.chronicle.core.io.InvalidMarshallableException@NotNull public @NotNull WireOut marshallable(@NotNull @NotNull Serializable object) throws net.openhft.chronicle.core.io.InvalidMarshallableException
ValueOutSerializable interface to the wire output.marshallable in interface ValueOutobject - The Serializable object to be written.net.openhft.chronicle.core.io.InvalidMarshallableException - If the object cannot be marshalled.@NotNull public @NotNull WireOut map(Map map) throws net.openhft.chronicle.core.io.InvalidMarshallableException
ValueOutpublic void resetState()
resetState in interface ValueOutpublic void elementSeparator()
ValueOutelementSeparator in interface ValueOutCopyright © 2024. All rights reserved.