Lines Matching refs:value
219 static_assert(std::is_same<typename std::remove_const<T>::type, uint8_t>::value, in ReverseSearchUnsignedLeb128()
246 static inline uint8_t* EncodeUnsignedLeb128(uint8_t* dest, uint32_t value) { in EncodeUnsignedLeb128() argument
247 uint8_t out = value & 0x7f; in EncodeUnsignedLeb128()
248 value >>= 7; in EncodeUnsignedLeb128()
249 while (value != 0) { in EncodeUnsignedLeb128()
251 out = value & 0x7f; in EncodeUnsignedLeb128()
252 value >>= 7; in EncodeUnsignedLeb128()
259 static inline void EncodeUnsignedLeb128(Vector* dest, uint32_t value) { in EncodeUnsignedLeb128() argument
260 static_assert(std::is_same<typename Vector::value_type, uint8_t>::value, "Invalid value type"); in EncodeUnsignedLeb128()
261 uint8_t out = value & 0x7f; in EncodeUnsignedLeb128()
262 value >>= 7; in EncodeUnsignedLeb128()
263 while (value != 0) { in EncodeUnsignedLeb128()
265 out = value & 0x7f; in EncodeUnsignedLeb128()
266 value >>= 7; in EncodeUnsignedLeb128()
273 static inline void UpdateUnsignedLeb128(uint8_t* dest, uint32_t value) { in UpdateUnsignedLeb128() argument
276 DCHECK_LE(UnsignedLeb128Size(value), UnsignedLeb128Size(old_value)); in UpdateUnsignedLeb128()
277 for (uint8_t* end = EncodeUnsignedLeb128(dest, value); end < old_end; end++) { in UpdateUnsignedLeb128()
284 static inline uint8_t* EncodeSignedLeb128(uint8_t* dest, int32_t value) { in EncodeSignedLeb128() argument
285 uint32_t extra_bits = static_cast<uint32_t>(value ^ (value >> 31)) >> 6; in EncodeSignedLeb128()
286 uint8_t out = value & 0x7f; in EncodeSignedLeb128()
289 value >>= 7; in EncodeSignedLeb128()
290 out = value & 0x7f; in EncodeSignedLeb128()
298 static inline void EncodeSignedLeb128(Vector* dest, int32_t value) { in EncodeSignedLeb128() argument
299 static_assert(std::is_same<typename Vector::value_type, uint8_t>::value, "Invalid value type"); in EncodeSignedLeb128()
300 uint32_t extra_bits = static_cast<uint32_t>(value ^ (value >> 31)) >> 6; in EncodeSignedLeb128()
301 uint8_t out = value & 0x7f; in EncodeSignedLeb128()
304 value >>= 7; in EncodeSignedLeb128()
305 out = value & 0x7f; in EncodeSignedLeb128()
314 static_assert(std::is_same<typename Vector::value_type, uint8_t>::value, "Invalid value type");
325 void PushBackUnsigned(uint32_t value) { in PushBackUnsigned() argument
326 EncodeUnsignedLeb128(data_, value); in PushBackUnsigned()
336 void PushBackSigned(int32_t value) { in PushBackSigned() argument
337 EncodeSignedLeb128(data_, value); in PushBackSigned()
362 static_assert(std::is_same<typename Vector::value_type, uint8_t>::value, "Invalid value type");