|
|
@ -773,21 +773,11 @@ inline FieldType ZigZagDecodeHelper(FieldType value) { |
|
|
|
return static_cast<FieldType>(value); |
|
|
|
return static_cast<FieldType>(value); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
template <> |
|
|
|
|
|
|
|
inline uint32_t ZigZagDecodeHelper<uint32_t, true>(uint32_t value) { |
|
|
|
|
|
|
|
return WireFormatLite::ZigZagDecode32(value); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <> |
|
|
|
template <> |
|
|
|
inline int32_t ZigZagDecodeHelper<int32_t, true>(int32_t value) { |
|
|
|
inline int32_t ZigZagDecodeHelper<int32_t, true>(int32_t value) { |
|
|
|
return WireFormatLite::ZigZagDecode32(value); |
|
|
|
return WireFormatLite::ZigZagDecode32(value); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
template <> |
|
|
|
|
|
|
|
inline uint64_t ZigZagDecodeHelper<uint64_t, true>(uint64_t value) { |
|
|
|
|
|
|
|
return WireFormatLite::ZigZagDecode64(value); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <> |
|
|
|
template <> |
|
|
|
inline int64_t ZigZagDecodeHelper<int64_t, true>(int64_t value) { |
|
|
|
inline int64_t ZigZagDecodeHelper<int64_t, true>(int64_t value) { |
|
|
|
return WireFormatLite::ZigZagDecode64(value); |
|
|
|
return WireFormatLite::ZigZagDecode64(value); |
|
|
|