Lines Matching refs:X
227 template<class X>
228 X* ofs_to_ptr(Offset ofs) in ofs_to_ptr()
234 return reinterpret_cast<X*>(p + ofs); in ofs_to_ptr()
244 template<class X>
245 const X* ofs_to_ptr(Offset ofs) const in ofs_to_ptr()
251 return reinterpret_cast<const X*>(p + ofs); in ofs_to_ptr()
262 template<class X>
263 X ofs_to_obj(Offset ofs) in ofs_to_obj()
269 return X(p + ofs); in ofs_to_obj()
273 return X(NULL); in ofs_to_obj()
280 template<class X>
281 const X ofs_to_obj(Offset ofs) const in ofs_to_obj()
287 return X(const_cast<u8*>(p + ofs)); in ofs_to_obj()
291 return X(NULL); in ofs_to_obj()
297 template<class X>
298 X* ofs_to_ptr_raw(Offset ofs) in ofs_to_ptr_raw()
301 return reinterpret_cast<X*>(reinterpret_cast<u8*>(mpData) + ofs); in ofs_to_ptr_raw()
306 template<class X>
307 const X* ofs_to_ptr_raw(Offset ofs) const in ofs_to_ptr_raw()
310 return reinterpret_cast<const X*>(reinterpret_cast<const u8*>(mpData) + ofs); in ofs_to_ptr_raw()