public void Free() { M = GenericMarshal.FromPtr <float>(internalStruct.m, 16, true); if (internalStructPtr != IntPtr.Zero) { StructMarshal.FreeStructPtr <InternalStruct>(internalStructPtr); } internalStructPtr = IntPtr.Zero; }
public void Free() { Face = GenericMarshal.FromPtr <uint>(internalStruct.face, 2, true); Vertex = GenericMarshal.FromPtr <uint>(internalStruct.vertex, 2, true); if (internalStructPtr != IntPtr.Zero) { StructMarshal.FreeStructPtr <InternalStruct>(internalStructPtr); } internalStructPtr = IntPtr.Zero; }
public void Free() { ElementCount = internalStruct.elementCount; ArraySize = internalStruct.arraySize; Array = GenericMarshal.FromPtr <bool>(internalStruct.array, ElementCount, true); if (internalStructPtr != IntPtr.Zero) { StructMarshal.FreeStructPtr <InternalStruct>(internalStructPtr); } internalStructPtr = IntPtr.Zero; }
public void Free() { Dir = internalStruct.dir; Type = internalStruct.type; Param = GenericMarshal.FromPtr <float>(internalStruct.param, 2, true); if (internalStructPtr != IntPtr.Zero) { StructMarshal.FreeStructPtr <InternalStruct>(internalStructPtr); } internalStructPtr = IntPtr.Zero; }
public void Free() { A = internalStruct.a; B = internalStruct.b; C = internalStruct.c; D = internalStruct.d; E = internalStruct.e; F = GenericMarshal.FromPtr <byte>(internalStruct.f, 6, true); if (internalStructPtr != IntPtr.Zero) { StructMarshal.FreeStructPtr <InternalStruct>(internalStructPtr); } internalStructPtr = IntPtr.Zero; }