public int GetMaxSerializedSize() { if (IsConsumed) { throw new InvalidOperationException("Message has already been consumed."); } return(0 + CommandId.GetMaxSerializedSize() + (4 + Encoding.UTF8.GetByteCount(Text))); }
public int GetMaxSerializedSize() { return(0 + CommandId.GetMaxSerializedSize() + 4 + Encoding.UTF8.GetByteCount(Text)); }