@FunctionalInterface public interface WriteBytesMarshallable extends CommonMarshallable
Validatable| Modifier and Type | Method and Description |
|---|---|
void |
writeMarshallable(BytesOut<?> bytes)
Serializes this object to the provided Bytes instance.
|
usesSelfDescribingMessagevoid writeMarshallable(BytesOut<?> bytes) throws IllegalStateException, BufferOverflowException, net.openhft.chronicle.core.io.InvalidMarshallableException
This method is responsible for calling
Validatable.validate() as needed to ensure
the validity of the state of the object before serialization.
bytes - the BytesOut instance to write the object's state to.BufferOverflowException - If there is no more space left to write in the buffer.net.openhft.chronicle.core.io.InvalidMarshallableException - If the object cannot be successfully serialized.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 wayIllegalStateExceptionCopyright © 2024. All rights reserved.