(file) Return to field.c CVS log (file) (dir) Up to [OMI] / omi / base

Diff for /omi/base/field.c between version 1.1 and 1.2

version 1.1, 2012/05/30 22:47:49 version 1.2, 2012/06/15 20:51:14
Line 80 
Line 80 
     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,
Line 200 
Line 205 
     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(
Line 219 
Line 224 
     MI_Type type,     MI_Type type,
     MI_Uint8 x)     MI_Uint8 x)
 { {
     memset(self, x, _fieldSizes[(int)type]);      memset(self, x, FieldSizeOf(type));
 } }
  
 /* /*


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

ViewCVS 0.9.2