System\Windows\Media\Imaging\PropVariant.cs (59)
132ca.cElems = 0;
133ca.pElems = IntPtr.Zero;
153ca.cElems = (uint)length;
154ca.pElems = destPtr;
177ca.cElems = 0;
178ca.pElems = IntPtr.Zero;
212ca.cElems = (uint) length;
213ca.pElems = destPtr;
444if (ca.pElems != IntPtr.Zero)
450IntPtr punkPtr = ca.pElems;
457for (uint i=0; i<ca.cElems; i++)
465IntPtr strPtr = ca.pElems;
472for (uint i=0; i<ca.cElems; i++)
478Marshal.FreeCoTaskMem(ca.pElems);
509sbyte[] array = new sbyte[ca.cElems];
510for (int i=0; i<ca.cElems; i++)
511array[i] = (sbyte) Marshal.ReadByte(ca.pElems, i);
517byte[] array = new byte[ca.cElems];
518Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
524short[] array = new short[ca.cElems];
525Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
531ushort[] array = new ushort[ca.cElems];
532for (int i=0; i<ca.cElems; i++)
533array[i] = (ushort) Marshal.ReadInt16(ca.pElems, i*sizeof(ushort));
539int[] array = new int[ca.cElems];
540Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
546uint[] array = new uint[ca.cElems];
547for (int i=0; i<ca.cElems; i++)
548array[i] = (uint) Marshal.ReadInt32(ca.pElems, i*sizeof(uint));
554Int64[] array = new Int64[ca.cElems];
555Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
561UInt64[] array = new UInt64[ca.cElems];
562for (int i=0; i<ca.cElems; i++)
563array[i] = (UInt64) Marshal.ReadInt64(ca.pElems, i*sizeof(UInt64));
569float[] array = new float[ca.cElems];
570Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
576double[] array = new double[ca.cElems];
577Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
583bool[] array = new bool[ca.cElems];
584for (int i=0; i<ca.cElems; i++)
585array[i] = (bool) (Marshal.ReadInt16(ca.pElems, i*sizeof(ushort)) != 0);
591Guid[] array = new Guid[ca.cElems];
592for (int i=0; i<ca.cElems; i++)
595Marshal.Copy(ca.pElems, guid, i*16, 16);
603String[] array = new String[ca.cElems];
610for (int i=0; i<ca.cElems; i++)
612IntPtr ptr = Marshal.ReadIntPtr(ca.pElems, i*sizeIntPtr);
620String[] array = new String[ca.cElems];
627for (int i=0; i<ca.cElems; i++)
629IntPtr ptr = Marshal.ReadIntPtr(ca.pElems, i*sizeIntPtr);
696byte[] blob = new byte[ca.cElems];
697Marshal.Copy(ca.pElems, blob, 0, (int)ca.cElems);