writeObject function

void writeObject(
  1. ByteSink out,
  2. Serializer o
)

Write an object to ByteArrayOutputStream. @param out the ByteArrayOutputStream to use @param o the Object to write @throws IOException if object cannot be written

Implementation

void writeObject(ByteSink out, Serializer o) {
  o.toByteArrayStream(out);
}