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