public static int GetRequestLength(string topic, string encoding = DefaultEncoding) { short topicLength = GetTopicLength(topic, encoding); return topicLength + DefaultHeaderSize; }