Lines Matching refs:data

33 static inline uint32_t DecodeUnsignedLeb128(const uint8_t** data) {  in DecodeUnsignedLeb128()  argument
34 const uint8_t* ptr = *data; in DecodeUnsignedLeb128()
54 *data = ptr; in DecodeUnsignedLeb128()
58 static inline uint32_t DecodeUnsignedLeb128WithoutMovingCursor(const uint8_t* data) { in DecodeUnsignedLeb128WithoutMovingCursor() argument
59 return DecodeUnsignedLeb128(&data); in DecodeUnsignedLeb128WithoutMovingCursor()
62 static inline bool DecodeUnsignedLeb128Checked(const uint8_t** data, in DecodeUnsignedLeb128Checked() argument
65 const uint8_t* ptr = *data; in DecodeUnsignedLeb128Checked()
100 *data = ptr; in DecodeUnsignedLeb128Checked()
109 static inline int32_t DecodeUnsignedLeb128P1(const uint8_t** data) { in DecodeUnsignedLeb128P1() argument
110 return DecodeUnsignedLeb128(data) - 1; in DecodeUnsignedLeb128P1()
116 static inline int32_t DecodeSignedLeb128(const uint8_t** data) { in DecodeSignedLeb128() argument
117 const uint8_t* ptr = *data; in DecodeSignedLeb128()
145 *data = ptr; in DecodeSignedLeb128()
149 static inline bool DecodeSignedLeb128Checked(const uint8_t** data, in DecodeSignedLeb128Checked() argument
152 const uint8_t* ptr = *data; in DecodeSignedLeb128Checked()
195 *data = ptr; in DecodeSignedLeb128Checked()
201 static inline uint32_t UnsignedLeb128Size(uint32_t data) { in UnsignedLeb128Size() argument
204 uint32_t x = 6 + 32 - CLZ(data | 1U); in UnsignedLeb128Size()
239 static inline uint32_t SignedLeb128Size(int32_t data) { in SignedLeb128Size() argument
241 data = data ^ (data >> 31); in SignedLeb128Size()
242 uint32_t x = 1 /* we need to encode the sign bit */ + 6 + 32 - CLZ(data | 1U); in SignedLeb128Size()
317 explicit Leb128Encoder(Vector* data) : data_(data) { in Leb128Encoder() argument
318 DCHECK(data != nullptr); in Leb128Encoder()