T - the type of objects serializedpublic interface BytesWriter<T>
extends net.openhft.chronicle.wire.Marshallable
BytesReader.
Read BytesWriter and BytesReader and
custom
serialization checklist sections in the Chronicle Map tutorial for more information on this
interface, how to implement and use it properly.
| Modifier and Type | Method and Description |
|---|---|
void |
write(net.openhft.chronicle.bytes.Bytes out,
T toWrite)
Serializes the given object to the given
out. |
$equals, $fieldInfos, $hashCode, $toString, copyFrom, copyTo, deepCopy, fromFile, fromFile, fromFileAsMap, fromFileAsMap, fromHexString, fromString, fromString, fromString, getClassName, getField, mergeToMap, readMarshallable, reset, setField, streamFromFile, streamFromFile, writeMarshallablevoid write(net.openhft.chronicle.bytes.Bytes out,
@NotNull
T toWrite)
out.
Implementation of this method should increment the position of the given out by the number of bytes written. The given object should be
written into these range between the initial bytes' position and the position after
this method call returns. Bytes outside of this range shouldn't be written. Any bytes
shouldn't be read from out.
out - the Bytes to write the given object totoWrite - the object to serializeCopyright © 2019. All rights reserved.