T
- the type of objects serializedpublic interface BytesWriter<T> extends 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.
EMPTY
DISCARD
Modifier and Type | Method and Description |
---|---|
void |
write(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, getClassName, getField, mergeToMap, readMarshallable, setField, streamFromFile, streamFromFile, writeMarshallable
writeValue
void write(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 © 2017. All rights reserved.