getMessageSize method
Implementation
int getMessageSize() {
var length = 0;
length += header.getMessageSize();
length += utf8.encode(name).length;
length += utf8.encode(msg).length;
length += utf8.encode(file).length;
length += utf8.encode(function).length;
topics.forEach((val) {
length += 4 + utf8.encode(val).length;
});
return length + 25;
}