version 1.1, 2012/05/30 22:47:49
|
version 1.2, 2012/06/15 20:51:14
|
|
|
sizeof(MI_InstanceAField), | sizeof(MI_InstanceAField), |
}; | }; |
| |
|
MI_INLINE size_t FieldSizeOf(MI_Type type) |
|
{ |
|
return _fieldSizes[(int)type]; |
|
} |
|
|
static void* _CloneSimpleArray( | static void* _CloneSimpleArray( |
const void* data, | const void* data, |
MI_Uint32 size, | MI_Uint32 size, |
|
|
const Field* src, | const Field* src, |
MI_Type type) | MI_Type type) |
{ | { |
memcpy(dest, src, _fieldSizes[(int)type]); |
memcpy(dest, src, FieldSizeOf(type)); |
} | } |
| |
static void _Swap( | static void _Swap( |
|
|
MI_Type type, | MI_Type type, |
MI_Uint8 x) | MI_Uint8 x) |
{ | { |
memset(self, x, _fieldSizes[(int)type]); |
memset(self, x, FieldSizeOf(type)); |
} | } |
| |
/* | /* |