Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (59)
163ca.cElems = 0;
164ca.pElems = IntPtr.Zero;
184ca.cElems = (uint)length;
185ca.pElems = destPtr;
213ca.cElems = 0;
214ca.pElems = IntPtr.Zero;
248ca.cElems = (uint) length;
249ca.pElems = destPtr;
490if (ca.pElems != IntPtr.Zero)
496IntPtr punkPtr = ca.pElems;
503for (uint i=0; i<ca.cElems; i++)
511IntPtr strPtr = ca.pElems;
518for (uint i=0; i<ca.cElems; i++)
524Marshal.FreeCoTaskMem(ca.pElems);
560sbyte[] array = new sbyte[ca.cElems];
561for (int i=0; i<ca.cElems; i++)
562array[i] = (sbyte) Marshal.ReadByte(ca.pElems, i);
568byte[] array = new byte[ca.cElems];
569Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
575short[] array = new short[ca.cElems];
576Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
582ushort[] array = new ushort[ca.cElems];
583for (int i=0; i<ca.cElems; i++)
584array[i] = (ushort) Marshal.ReadInt16(ca.pElems, i*sizeof(ushort));
590int[] array = new int[ca.cElems];
591Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
597uint[] array = new uint[ca.cElems];
598for (int i=0; i<ca.cElems; i++)
599array[i] = (uint) Marshal.ReadInt32(ca.pElems, i*sizeof(uint));
605Int64[] array = new Int64[ca.cElems];
606Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
612UInt64[] array = new UInt64[ca.cElems];
613for (int i=0; i<ca.cElems; i++)
614array[i] = (UInt64) Marshal.ReadInt64(ca.pElems, i*sizeof(UInt64));
620float[] array = new float[ca.cElems];
621Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
627double[] array = new double[ca.cElems];
628Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
634bool[] array = new bool[ca.cElems];
635for (int i=0; i<ca.cElems; i++)
636array[i] = (bool) (Marshal.ReadInt16(ca.pElems, i*sizeof(ushort)) != 0);
642Guid[] array = new Guid[ca.cElems];
643for (int i=0; i<ca.cElems; i++)
646Marshal.Copy(ca.pElems, guid, i*16, 16);
654String[] array = new String[ca.cElems];
661for (int i=0; i<ca.cElems; i++)
663IntPtr ptr = Marshal.ReadIntPtr(ca.pElems, i*sizeIntPtr);
671String[] array = new String[ca.cElems];
678for (int i=0; i<ca.cElems; i++)
680IntPtr ptr = Marshal.ReadIntPtr(ca.pElems, i*sizeIntPtr);
747byte[] blob = new byte[ca.cElems];
748Marshal.Copy(ca.pElems, blob, 0, (int)ca.cElems);