@FunctionalInterface public interface WriteBytesMarshallable extends CommonMarshallable
BytesOut stream. Implementations typically call
Validatable.validate() before writing.| Modifier and Type | Method and Description |
|---|---|
void |
writeMarshallable(BytesOut<?> bytes)
Writes this object's state to
bytes using a custom binary format. |
usesSelfDescribingMessagevoid writeMarshallable(BytesOut<?> bytes) throws IllegalStateException, BufferOverflowException, net.openhft.chronicle.core.io.InvalidMarshallableException
bytes using a custom binary format.
Implementations may validate their state prior to writing and throw
InvalidMarshallableException if invalid.bytes - the target streamBufferOverflowException - if there is insufficient space in the buffernet.openhft.chronicle.core.io.InvalidMarshallableException - if the object is not in a valid state for serialisationnet.openhft.chronicle.core.io.ClosedIllegalStateException - if the resource has been released or closednet.openhft.chronicle.core.io.ThreadingIllegalStateException - if accessed by multiple threads in an unsafe wayIllegalStateExceptionCopyright © 2026 Chronicle Software Ltd. All rights reserved.