public abstract class SelfDescribingTriviallyCopyable extends SelfDescribingMarshallable
SelfDescribingMarshallable.
The class provides mechanisms to efficiently manage the internal data layout of an instance based on various data types
such as longs, ints, shorts, and bytes. Useful for high-performance scenarios where the layout determined using a
description integer is known and stable yet the object remains self-describing when marshalled.EMPTYDISCARD| Constructor and Description |
|---|
SelfDescribingTriviallyCopyable() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
$description()
Fetches the description of the current data layout.
|
protected abstract int |
$length()
Fetches the total length of the data based on its layout.
|
protected abstract int |
$start()
Determines the starting offset for the data.
|
boolean |
equals(Object o) |
int |
hashCode() |
void |
readMarshallable(net.openhft.chronicle.bytes.BytesIn<?> bytes)
Reads the object's state from the bytes.
|
String |
toString() |
void |
writeMarshallable(net.openhft.chronicle.bytes.BytesOut<?> bytes)
Writes the description followed by the trivially copyable fields using an
unsafe memory copy.
|
usesSelfDescribingMessageclone, finalize, getClass, notify, notifyAll, wait, wait, wait$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueunexpectedFieldprotected abstract int $description()
protected abstract int $start()
protected abstract int $length()
public void readMarshallable(net.openhft.chronicle.bytes.BytesIn<?> bytes)
throws net.openhft.chronicle.core.io.IORuntimeException,
BufferUnderflowException,
IllegalStateException
$description(), a fast unsafe copy is performed;
otherwise carefulCopy(BytesIn, int) handles schema differences.net.openhft.chronicle.core.io.IORuntimeExceptionBufferUnderflowExceptionIllegalStateExceptionpublic void writeMarshallable(net.openhft.chronicle.bytes.BytesOut<?> bytes)
throws IllegalStateException,
BufferOverflowException,
BufferUnderflowException,
ArithmeticException
Copyright © 2026 Chronicle Software Ltd. All rights reserved.