Lines Matching refs:data
31 static inline uint32_t DecodeUnsignedLeb128(const uint8_t** data) { in DecodeUnsignedLeb128() argument
32 const uint8_t* ptr = *data; in DecodeUnsignedLeb128()
52 *data = ptr; in DecodeUnsignedLeb128()
60 static inline int32_t DecodeUnsignedLeb128P1(const uint8_t** data) { in DecodeUnsignedLeb128P1() argument
61 return DecodeUnsignedLeb128(data) - 1; in DecodeUnsignedLeb128P1()
67 static inline int32_t DecodeSignedLeb128(const uint8_t** data) { in DecodeSignedLeb128() argument
68 const uint8_t* ptr = *data; in DecodeSignedLeb128()
96 *data = ptr; in DecodeSignedLeb128()
101 static inline uint32_t UnsignedLeb128Size(uint32_t data) { in UnsignedLeb128Size() argument
104 uint32_t x = 6 + 32 - CLZ(data | 1); in UnsignedLeb128Size()
111 static inline uint32_t SignedLeb128Size(int32_t data) { in SignedLeb128Size() argument
113 data = data ^ (data >> 31); in SignedLeb128Size()
114 uint32_t x = 1 /* we need to encode the sign bit */ + 6 + 32 - CLZ(data | 1); in SignedLeb128Size()
184 explicit Leb128Encoder(std::vector<uint8_t>* data) : data_(data) { in Leb128Encoder() argument
185 DCHECK(data != nullptr); in Leb128Encoder()