SshWireWriter.putString

void putString(const(ubyte)[] data, size_t maxLength = SshWireLimits.stringMax) @safe

Writes a length-prefixed string.

Parameters

dataPayload bytes.
maxLengthLimit enforced on the payload length.

Throws

SshWireException when the payload exceeds the limit.
void putString(string text, size_t maxLength = SshWireLimits.stringMax) @safe

Writes a length-prefixed string from text.