toByteArrayStream method

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

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.writeString(out, id);
  SerializerHelper.writeString(out, executable);
  SerializerHelper.writeInt(out, port);
  SerializerHelper.writeInt(
      out, declaration == Declaration.doNotShareData ? 0 : 1);
  secret.toByteArrayStream(out);
  SerializerHelper.writeLong(out, serialVersionUID);
}