Loading...
Searching...
No Matches
10#ifndef __RTFieldOffset_h__
11#define __RTFieldOffset_h__ included
23typedef size_t RTFieldOffset;
25#define RTOffsetOf( type, field ) \
26 ( ( reinterpret_cast<RTFieldOffset>(reinterpret_cast<char *>(&( (reinterpret_cast<type *>(sizeof( type )))->field ) )) \
29#define RTObjectOf( type, offset, object ) \
30 ( reinterpret_cast<type *>( (reinterpret_cast<char *>(object)) + (offset) ) )
32#define RTConstObjectOf( type, offset, object ) \
33 ( reinterpret_cast<const type *>( (reinterpret_cast<const char *>(object)) + (offset) ) )