예제 #1
0
 public unsafe static void PtrToStructureDirect(IntPtr ptr, TypedReference structure, int size)
 {
     SafeBufferHacks.PtrToStructureNative((byte *)ptr, structure, unchecked ((uint)size));
 }
예제 #2
0
 public unsafe static void StructureToPtrDirect(TypedReference structure, IntPtr ptr, int size)
 {
     SafeBufferHacks.StructureToPtrNative(structure, (byte *)ptr, unchecked ((uint)size));
 }