serializedSize property
Exact size for this serialized object.
Implementation
@override
int get serializedSize {
int ret = serializedHeaderSize +
userName.length +
serviceName.length +
methodName.length;
if (methodName == 'publickey') {
ret += 4 * 3 + 1 + algoName.length + secret.length + sig.length;
} else if (methodName == 'password') {
ret += 4 * 1 + 1 + secret.length;
} else if (methodName == 'keyboard-interactive') {
ret += 4 * 2;
}
return ret;
}