Lines Matching refs:data
56 uintptr_t readULEB128(const uint8_t** data) { in readULEB128() argument
60 const uint8_t *p = *data; in readULEB128()
66 *data = p; in readULEB128()
70 intptr_t readSLEB128(const uint8_t** data) { in readSLEB128() argument
74 const uint8_t *p = *data; in readSLEB128()
80 *data = p; in readSLEB128()
87 static inline uint16_t readUData2(const uint8_t* data) { in readUData2() argument
89 return ((static_cast<uint16_t>(data[0])) | in readUData2()
90 (static_cast<uint16_t>(data[1]) << 8)); in readUData2()
92 return ((static_cast<uint16_t>(data[0]) << 8) | in readUData2()
93 (static_cast<uint16_t>(data[1]))); in readUData2()
97 static inline uint32_t readUData4(const uint8_t* data) { in readUData4() argument
99 return ((static_cast<uint32_t>(data[0])) | in readUData4()
100 (static_cast<uint32_t>(data[1]) << 8) | in readUData4()
101 (static_cast<uint32_t>(data[2]) << 16) | in readUData4()
102 (static_cast<uint32_t>(data[3]) << 24)); in readUData4()
104 return ((static_cast<uint32_t>(data[0]) << 24) | in readUData4()
105 (static_cast<uint32_t>(data[1]) << 16) | in readUData4()
106 (static_cast<uint32_t>(data[2]) << 8) | in readUData4()
107 (static_cast<uint32_t>(data[3]))); in readUData4()
111 static inline uint64_t readUData8(const uint8_t* data) { in readUData8() argument
113 return ((static_cast<uint64_t>(data[0])) | in readUData8()
114 (static_cast<uint64_t>(data[1]) << 8) | in readUData8()
115 (static_cast<uint64_t>(data[2]) << 16) | in readUData8()
116 (static_cast<uint64_t>(data[3]) << 24) | in readUData8()
117 (static_cast<uint64_t>(data[4]) << 32) | in readUData8()
118 (static_cast<uint64_t>(data[5]) << 40) | in readUData8()
119 (static_cast<uint64_t>(data[6]) << 48) | in readUData8()
120 (static_cast<uint64_t>(data[7]) << 56)); in readUData8()
122 return ((static_cast<uint64_t>(data[0]) << 56) | in readUData8()
123 (static_cast<uint64_t>(data[1]) << 48) | in readUData8()
124 (static_cast<uint64_t>(data[2]) << 40) | in readUData8()
125 (static_cast<uint64_t>(data[3]) << 32) | in readUData8()
126 (static_cast<uint64_t>(data[4]) << 24) | in readUData8()
127 (static_cast<uint64_t>(data[5]) << 16) | in readUData8()
128 (static_cast<uint64_t>(data[6]) << 8) | in readUData8()
129 (static_cast<uint64_t>(data[7]))); in readUData8()
133 static inline uintptr_t readAbsPtr(const uint8_t* data) { in readAbsPtr() argument
135 return static_cast<uintptr_t>(readUData4(data)); in readAbsPtr()
137 return static_cast<uintptr_t>(readUData8(data)); in readAbsPtr()
143 uintptr_t readEncodedPointer(const uint8_t** data, in readEncodedPointer() argument
149 const uint8_t* p = *data; in readEncodedPointer()
199 result += (uintptr_t)(*data); in readEncodedPointer()
208 *data = p; in readEncodedPointer()