Lines Matching defs:offset
27 // address of where the offset value is stored, such that the pointer may be
30 // ptr = reinterpret_cast<char*>(offset) + *offset
32 // A null pointer is encoded as an offset value of 0.
34 void EncodePointer(const void* ptr, uint64_t* offset);
36 const void* DecodePointerRaw(const uint64_t* offset);
40 inline void DecodePointer(const uint64_t* offset, T** ptr) {
41 *ptr = reinterpret_cast<T*>(const_cast<void*>(DecodePointerRaw(offset)));
45 // smaller than |offset|.
46 bool ValidateEncodedPointer(const uint64_t* offset);
61 EncodePointer(obj->ptr, &obj->offset);
67 DecodePointer(&obj->offset, &obj->ptr);