private static extern void CopyMemory(IntPtr dest, ref WeightingInfoArgs src, int size_t);
private static unsafe extern void CopyMemory(ref WeightingInfoArgs dest, IntPtr src, int size_t);