コード例 #1
0
        public void Free()
        {
            M = GenericMarshal.FromPtr <float>(internalStruct.m, 16, true);

            if (internalStructPtr != IntPtr.Zero)
            {
                StructMarshal.FreeStructPtr <InternalStruct>(internalStructPtr);
            }
            internalStructPtr = IntPtr.Zero;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
        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;
        }
コード例 #5
0
        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;
        }