Exemplo n.º 1
0
 /// <summary>
 /// Computes the number of bytes that would be needed to encode an
 /// sint32 field, including the tag.
 /// </summary>
 public static int ComputeSInt32Size(int value)
 {
     return(ComputeRawVarint32Size(WritingPrimitives.EncodeZigZag32(value)));
 }