toByteArrayStream method

  1. @override
void toByteArrayStream(
  1. ByteSink out
)
override

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 stream

Implementation

@override
void toByteArrayStream(ByteSink out) {
  SerializerHelper.writeLong(out, serialversionUID);
  SerializerHelper.writeInt(out, values.length);
  for (MapEntry<Field, String> e in values.entries) {
    SerializerHelper.writeString(out, e.key.toString());
    SerializerHelper.writeString(out, e.value);
  }
  SerializerHelper.writeLong(out, serialversionUID);
}