serializedSize property

  1. @override
int get serializedSize
override

Exact size for this serialized object.

Implementation

@override
int get serializedSize {
  int ret = serializedHeaderSize + requestType.length;
  if (requestType == 'pty-req') {
    ret += 4 * 6 + term.length + termMode.length;
  } else if (requestType == 'exec') {
    ret += 4 * 1 + term.length;
  } else if (requestType == 'window-change') {
    ret += 4 * 4;
  }
  return ret;
}