Searched refs:ZigZag (Results 1 – 15 of 15) sorted by relevance
92 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if96 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if117 // Uses ZigZag encoding.119 // Uses ZigZag encoding.
611 template <bool ZigZag, bool SignExtended, typename T>617 (std::is_unsigned<T>::value ^ ZigZag) || std::is_signed<T>::value, in VarintSize()623 static_assert(!(SignExtended && ZigZag), in VarintSize()630 if (ZigZag) { in VarintSize()648 template <bool ZigZag, typename T>653 static_assert(!ZigZag || !std::is_unsigned<T>::value, in VarintSize64()659 if (ZigZag) { in VarintSize64()
143 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if147 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if167 TYPE_SINT32 = 17; // Uses ZigZag encoding.168 TYPE_SINT64 = 18; // Uses ZigZag encoding.
746 TEST(WireFormatTest, ZigZag) { in TEST() argument
29 Returns the size of a signed integer when ZigZag encoded as a varint.
109 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if113 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if129 TYPE_SINT32 = 17; // Uses ZigZag encoding.130 TYPE_SINT64 = 18; // Uses ZigZag encoding.
116 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if120 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if136 TYPE_SINT32 = 17; // Uses ZigZag encoding.137 TYPE_SINT64 = 18; // Uses ZigZag encoding.
131 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if135 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if155 TYPE_SINT32 = 17; // Uses ZigZag encoding.156 TYPE_SINT64 = 18; // Uses ZigZag encoding.
142 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if146 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if166 TYPE_SINT32 = 17; // Uses ZigZag encoding.167 TYPE_SINT64 = 18; // Uses ZigZag encoding.
140 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if144 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if164 TYPE_SINT32 = 17; // Uses ZigZag encoding.165 TYPE_SINT64 = 18; // Uses ZigZag encoding.
2703 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if2707 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if2728 // Uses ZigZag encoding.2730 // Uses ZigZag encoding.