1 write to _chunkList
PresentationCore (1)
Core\CSharp\System\Windows\Media\ByteStreamGeometryContext.cs (1)
517
_chunkList
= new FrugalStructList<byte[]>();
24 references to _chunkList
PresentationCore (24)
Core\CSharp\System\Windows\Media\ByteStreamGeometryContext.cs (24)
306
return
_chunkList
[0];
381
CloseCore(
_chunkList
[0]);
470
if (
_chunkList
.Count == 0)
473
_chunkList
.Add(chunk);
476
ReadWriteData(false /* writing */, pbData, cbDataSize,
_chunkList
.Count-1, ref _currChunkOffset);
491
Debug.Assert(
_chunkList
.Count != 0);
493
if (
_chunkList
.Count > 1 ||
494
_chunkList
[0].Length != _currOffset)
506
ByteStreamGeometryContext.ReturnChunkToPool(
_chunkList
[0]);
511
if (
_chunkList
.Count == 1)
513
_chunkList
[0] = buffer;
518
_chunkList
.Add(buffer);
546
while (bufferOffset >
_chunkList
[currentChunk].Length)
548
bufferOffset -=
_chunkList
[currentChunk].Length;
557
_chunkList
[currentChunk].Length - bufferOffset);
563
Invariant.Assert((
_chunkList
[currentChunk] != null)
564
&& (
_chunkList
[currentChunk].Length >= bufferOffset + cbDataForThisChunk));
567
Invariant.Assert(
_chunkList
[currentChunk].Length > 0);
571
Marshal.Copy(
_chunkList
[currentChunk], bufferOffset, (IntPtr)pbData, cbDataForThisChunk);
575
Marshal.Copy((IntPtr)pbData,
_chunkList
[currentChunk], bufferOffset, cbDataForThisChunk);
587
if (
_chunkList
.Count == currentChunk)
592
int newChunkSize = Math.Min(2*
_chunkList
[
_chunkList
.Count-1].Length, c_maxChunkSize);
594
_chunkList
.Add(new byte[newChunkSize]);