Lines Matching refs:X
229 template<class X>
230 X* ofs_to_ptr(Offset ofs) in ofs_to_ptr()
236 return reinterpret_cast<X*>(p + ofs); in ofs_to_ptr()
246 template<class X>
247 const X* ofs_to_ptr(Offset ofs) const in ofs_to_ptr()
253 return reinterpret_cast<const X*>(p + ofs); in ofs_to_ptr()
264 template<class X>
265 X ofs_to_obj(Offset ofs) in ofs_to_obj()
271 return X(p + ofs); in ofs_to_obj()
275 return X(NULL); in ofs_to_obj()
282 template<class X>
283 const X ofs_to_obj(Offset ofs) const in ofs_to_obj()
289 return X(const_cast<u8*>(p + ofs)); in ofs_to_obj()
293 return X(NULL); in ofs_to_obj()
299 template<class X>
300 X* ofs_to_ptr_raw(Offset ofs) in ofs_to_ptr_raw()
303 return reinterpret_cast<X*>(reinterpret_cast<u8*>(mpData) + ofs); in ofs_to_ptr_raw()
308 template<class X>
309 const X* ofs_to_ptr_raw(Offset ofs) const in ofs_to_ptr_raw()
312 return reinterpret_cast<const X*>(reinterpret_cast<const u8*>(mpData) + ofs); in ofs_to_ptr_raw()