toByteArrayStream method
Writes the current object to the output stream.
@param out the output stream receiving the object @throws IOException if an exception occurs while writing to the streamImplementation
@override
void toByteArrayStream(ByteSink out) {
SerializerHelper.writeLong(out, serialVersionUID);
SerializerHelper.writeInt(out, length);
for (MapEntry<K, V> e in entries) {
writeObject(out, e.key);
writeObject(out, e.value);
}
SerializerHelper.writeLong(out, serialVersionUID);
}