serialize method

  1. @override
void serialize(
  1. SerializableOutput output
)
override

Interface for output serialization.

Implementation

@override
void serialize(SerializableOutput output) {
  output.addBytes(cookie);
  serializeString(output, kexAlgorithms);
  serializeString(output, serverHostKeyAlgorithms);
  serializeString(output, encryptionAlgorithmsClientToServer);
  serializeString(output, encryptionAlgorithmsServerToClient);
  serializeString(output, macAlgorithmsClientToServer);
  serializeString(output, macAlgorithmsServerToClient);
  serializeString(output, compressionAlgorithmsClientToServer);
  serializeString(output, compressionAlgorithmsServerToClient);
  serializeString(output, languagesClientToServer);
  serializeString(output, languagesServerToClient);
  output.addUint8(firstKexPacketFollows ? 1 : 0);
  output.addUint32(0);
}