Lines Matching defs:value
53 public static int ComputeDoubleSize(double value)
62 public static int ComputeFloatSize(float value)
71 public static int ComputeUInt64Size(ulong value)
73 return ComputeRawVarint64Size(value);
80 public static int ComputeInt64Size(long value)
82 return ComputeRawVarint64Size((ulong) value);
89 public static int ComputeInt32Size(int value)
91 if (value >= 0)
93 return ComputeRawVarint32Size((uint) value);
106 public static int ComputeFixed64Size(ulong value)
115 public static int ComputeFixed32Size(uint value)
124 public static int ComputeBoolSize(bool value)
133 public static int ComputeStringSize(String value)
135 int byteArraySize = WritingPrimitives.Utf8Encoding.GetByteCount(value);
143 public static int ComputeGroupSize(IMessage value)
145 return value.CalculateSize();
152 public static int ComputeMessageSize(IMessage value)
154 int size = value.CalculateSize();
162 public static int ComputeBytesSize(ByteString value)
164 return ComputeLengthSize(value.Length) + value.Length;
171 public static int ComputeUInt32Size(uint value)
173 return ComputeRawVarint32Size(value);
179 /// converting the enum value to its numeric value.
181 public static int ComputeEnumSize(int value)
184 return ComputeInt32Size(value);
191 public static int ComputeSFixed32Size(int value)
200 public static int ComputeSFixed64Size(long value)
209 public static int ComputeSInt32Size(int value)
211 return ComputeRawVarint32Size(WritingPrimitives.EncodeZigZag32(value));
218 public static int ComputeSInt64Size(long value)
220 return ComputeRawVarint64Size(WritingPrimitives.EncodeZigZag64(value));
235 public static int ComputeRawVarint32Size(uint value)
237 if ((value & (0xffffffff << 7)) == 0)
241 if ((value & (0xffffffff << 14)) == 0)
245 if ((value & (0xffffffff << 21)) == 0)
249 if ((value & (0xffffffff << 28)) == 0)
259 public static int ComputeRawVarint64Size(ulong value)
261 if ((value & (0xffffffffffffffffL << 7)) == 0)
265 if ((value & (0xffffffffffffffffL << 14)) == 0)
269 if ((value & (0xffffffffffffffffL << 21)) == 0)
273 if ((value & (0xffffffffffffffffL << 28)) == 0)
277 if ((value & (0xffffffffffffffffL << 35)) == 0)
281 if ((value & (0xffffffffffffffffL << 42)) == 0)
285 if ((value & (0xffffffffffffffffL << 49)) == 0)
289 if ((value & (0xffffffffffffffffL << 56)) == 0)
293 if ((value & (0xffffffffffffffffL << 63)) == 0)