@FunctionalInterface public interface WriteMarshallable extends WriteValue, net.openhft.chronicle.bytes.CommonMarshallable
writeMarshallable(WireOut) method.
This interface is annotated with @FunctionalInterface, indicating that it is
intended to be used primarily for lambda expressions and method references.
Furthermore, the @DontChain annotation highlights that implementations should
not be chained for certain operations.
| Modifier and Type | Field and Description |
|---|---|
static WriteMarshallable |
EMPTY
Represents an empty marshallable entity that performs no actions
when its
writeMarshallable method is invoked. |
| Modifier and Type | Method and Description |
|---|---|
default net.openhft.chronicle.bytes.util.BinaryLengthLength |
binaryLengthLength()
Provides an assumed length in bytes for the serialized form of this entity.
|
void |
writeMarshallable(@NotNull WireOut wire)
Write the current state of the marshallable entity to the provided wire.
|
default void |
writeValue(@NotNull ValueOut out)
Writes the current state of the marshallable entity as a value
to the provided output.
|
static final WriteMarshallable EMPTY
writeMarshallable method is invoked.void writeMarshallable(@NotNull
@NotNull WireOut wire)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
wire - The wire format to write to.net.openhft.chronicle.core.io.InvalidMarshallableException - if any serialization error occurs.default void writeValue(@NotNull
@NotNull ValueOut out)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
writeValue in interface WriteValueout - The output to write to.net.openhft.chronicle.core.io.InvalidMarshallableException - if any serialization error occurs.default net.openhft.chronicle.bytes.util.BinaryLengthLength binaryLengthLength()
Copyright © 2024. All rights reserved.