Searched refs:SizeVarint (Results 1 – 21 of 21) sorted by relevance
17 return protowire.SizeVarint(protowire.EncodeBool(v.Bool()))19 return protowire.SizeVarint(uint64(v.Enum()))21 return protowire.SizeVarint(uint64(int32(v.Int())))23 return protowire.SizeVarint(protowire.EncodeZigZag(int64(int32(v.Int()))))25 return protowire.SizeVarint(uint64(uint32(v.Uint())))27 return protowire.SizeVarint(uint64(v.Int()))29 return protowire.SizeVarint(protowire.EncodeZigZag(v.Int()))31 return protowire.SizeVarint(v.Uint())
312 msiz := protowire.SizeVarint(uint64(mlen))
956 n += proto.SizeVarint(400<<3 | proto.WireVarint)959 n += proto.SizeVarint(401<<3 | proto.WireVarint)960 n += proto.SizeVarint(uint64(x.OneofInt32))962 n += proto.SizeVarint(402<<3 | proto.WireVarint)963 n += proto.SizeVarint(uint64((uint32(x.OneofSint32) << 1) ^ uint32((int32(x.OneofSint32) >> 31))))965 n += proto.SizeVarint(403<<3 | proto.WireVarint)966 n += proto.SizeVarint(uint64(x.OneofUint32))968 n += proto.SizeVarint(404<<3 | proto.WireVarint)969 n += proto.SizeVarint(uint64(x.OneofInt64))971 n += proto.SizeVarint(405<<3 | proto.WireVarint)[all …]
1209 n += proto.SizeVarint(400<<3 | proto.WireVarint)1212 n += proto.SizeVarint(401<<3 | proto.WireVarint)1213 n += proto.SizeVarint(uint64(x.OneofInt32))1215 n += proto.SizeVarint(402<<3 | proto.WireVarint)1216 n += proto.SizeVarint(uint64((uint32(x.OneofSint32) << 1) ^ uint32((int32(x.OneofSint32) >> 31))))1218 n += proto.SizeVarint(403<<3 | proto.WireVarint)1219 n += proto.SizeVarint(uint64(x.OneofUint32))1221 n += proto.SizeVarint(404<<3 | proto.WireVarint)1222 n += proto.SizeVarint(uint64(x.OneofInt64))1224 n += proto.SizeVarint(405<<3 | proto.WireVarint)[all …]
2273 n += proto.SizeVarint(700<<3 | proto.WireVarint)2276 n += proto.SizeVarint(701<<3 | proto.WireVarint)2277 n += proto.SizeVarint(uint64(x.OneofInt32))2279 n += proto.SizeVarint(702<<3 | proto.WireVarint)2280 n += proto.SizeVarint(uint64((uint32(x.OneofSint32) << 1) ^ uint32((int32(x.OneofSint32) >> 31))))2282 n += proto.SizeVarint(703<<3 | proto.WireVarint)2283 n += proto.SizeVarint(uint64(x.OneofUint32))2285 n += proto.SizeVarint(704<<3 | proto.WireVarint)2286 n += proto.SizeVarint(uint64(x.OneofInt64))2288 n += proto.SizeVarint(705<<3 | proto.WireVarint)[all …]
2268 n += proto.SizeVarint(700<<3 | proto.WireVarint)2271 n += proto.SizeVarint(701<<3 | proto.WireVarint)2272 n += proto.SizeVarint(uint64(x.OneofInt32))2274 n += proto.SizeVarint(702<<3 | proto.WireVarint)2275 n += proto.SizeVarint(uint64((uint32(x.OneofSint32) << 1) ^ uint32((int32(x.OneofSint32) >> 31))))2277 n += proto.SizeVarint(703<<3 | proto.WireVarint)2278 n += proto.SizeVarint(uint64(x.OneofUint32))2280 n += proto.SizeVarint(704<<3 | proto.WireVarint)2281 n += proto.SizeVarint(uint64(x.OneofInt64))2283 n += proto.SizeVarint(705<<3 | proto.WireVarint)[all …]
1251 n += proto.SizeVarint(uint64(x.OneofInt32))1254 n += proto.SizeVarint(uint64((uint32(x.OneofSint32) << 1) ^ uint32((int32(x.OneofSint32) >> 31))))1257 n += proto.SizeVarint(uint64(x.OneofUint32))1260 n += proto.SizeVarint(uint64(x.OneofInt64))1263 n += proto.SizeVarint(uint64(uint64(x.OneofSint64<<1) ^ uint64((int64(x.OneofSint64) >> 63))))1266 n += proto.SizeVarint(uint64(x.OneofUint64))1287 n += proto.SizeVarint(uint64(len(x.OneofString)))1291 n += proto.SizeVarint(uint64(len(x.OneofBytes)))1295 n += proto.SizeVarint(uint64(x.OneofChildEnum))1299 n += proto.SizeVarint(uint64(s))[all …]
1293 n += proto.SizeVarint(uint64(x.OneofInt32))1296 n += proto.SizeVarint(uint64((uint32(x.OneofSint32) << 1) ^ uint32((int32(x.OneofSint32) >> 31))))1299 n += proto.SizeVarint(uint64(x.OneofUint32))1302 n += proto.SizeVarint(uint64(x.OneofInt64))1305 n += proto.SizeVarint(uint64(uint64(x.OneofSint64<<1) ^ uint64((int64(x.OneofSint64) >> 63))))1308 n += proto.SizeVarint(uint64(x.OneofUint64))1329 n += proto.SizeVarint(uint64(len(x.OneofString)))1333 n += proto.SizeVarint(uint64(len(x.OneofBytes)))1337 n += proto.SizeVarint(uint64(x.OneofChildEnum))1341 n += proto.SizeVarint(uint64(s))[all …]
20 return f.tagsize + protowire.SizeVarint(protowire.EncodeBool(v))69 return f.tagsize + protowire.SizeVarint(protowire.EncodeBool(v))95 return f.tagsize + protowire.SizeVarint(protowire.EncodeBool(v))146 size += f.tagsize + protowire.SizeVarint(protowire.EncodeBool(v))229 n += protowire.SizeVarint(protowire.EncodeBool(v))243 n += protowire.SizeVarint(protowire.EncodeBool(v))261 return tagsize + protowire.SizeVarint(protowire.EncodeBool(v.Bool()))306 size += tagsize + protowire.SizeVarint(protowire.EncodeBool(v.Bool()))390 n += protowire.SizeVarint(protowire.EncodeBool(v.Bool()))406 n += protowire.SizeVarint(protowire.EncodeBool(v.Bool()))[all …]
18 return f.tagsize + protowire.SizeVarint(uint64(v))115 size += protowire.SizeVarint(uint64(s.Index(i).Int())) + f.tagsize182 n += protowire.SizeVarint(uint64(s.Index(i).Int()))196 n += protowire.SizeVarint(uint64(s.Index(i).Int()))
55 tagsize: protowire.SizeVarint(wiretag),
124 tagsize: protowire.SizeVarint(wiretag),
145 n += protowire.SizeVarint(protowire.EncodeBool(false))147 n += protowire.SizeVarint(uint64(v))149 n += protowire.SizeVarint(protowire.EncodeZigZag(int64(v)))151 n += protowire.SizeVarint(uint64(v))338 if m := n - protowire.SizeVarint(v); m > 0 {404 if m := n - protowire.SizeVarint(v); m > 0 {451 if m := n - protowire.SizeVarint(v); m > 0 {486 if m := n - protowire.SizeVarint(v); m > 0 {525 if m := n - protowire.SizeVarint(v); m > 0 {
2392 n += proto.SizeVarint(uint64(x.OneofInt32))2395 n += proto.SizeVarint(uint64((uint32(x.OneofSint32) << 1) ^ uint32((int32(x.OneofSint32) >> 31))))2398 n += proto.SizeVarint(uint64(x.OneofUint32))2401 n += proto.SizeVarint(uint64(x.OneofInt64))2404 n += proto.SizeVarint(uint64(uint64(x.OneofSint64<<1) ^ uint64((int64(x.OneofSint64) >> 63))))2407 n += proto.SizeVarint(uint64(x.OneofUint64))2428 n += proto.SizeVarint(uint64(len(x.OneofString)))2432 n += proto.SizeVarint(uint64(len(x.OneofBytes)))2436 n += proto.SizeVarint(uint64(x.OneofChildEnum))2440 n += proto.SizeVarint(uint64(s))[all …]
2310 n += proto.SizeVarint(uint64(x.OneofInt32))2313 n += proto.SizeVarint(uint64((uint32(x.OneofSint32) << 1) ^ uint32((int32(x.OneofSint32) >> 31))))2316 n += proto.SizeVarint(uint64(x.OneofUint32))2319 n += proto.SizeVarint(uint64(x.OneofInt64))2322 n += proto.SizeVarint(uint64(uint64(x.OneofSint64<<1) ^ uint64((int64(x.OneofSint64) >> 63))))2325 n += proto.SizeVarint(uint64(x.OneofUint64))2346 n += proto.SizeVarint(uint64(len(x.OneofString)))2350 n += proto.SizeVarint(uint64(len(x.OneofBytes)))2354 n += proto.SizeVarint(uint64(x.OneofChildEnum))2358 n += proto.SizeVarint(uint64(s))[all …]
181 return SizeVarint(EncodeTag(num, 0)) // wire type has no effect on size371 func SizeVarint(v uint64) int { func450 return SizeVarint(uint64(n)) + n
569 check("Varint", SizeVarint(op.inVal))
89 func SizeVarint(uint64) int { panic("not implemented") } func
67 …return 2*protowire.SizeTag(FieldItem) + protowire.SizeTag(FieldTypeID) + protowire.SizeVarint(uint…