1 write to _chunkList
PresentationCore (1)
System\Windows\Media\ByteStreamGeometryContext.cs (1)
459
_chunkList
= new FrugalStructList<byte[]>();
24 references to _chunkList
PresentationCore (24)
System\Windows\Media\ByteStreamGeometryContext.cs (24)
273
return
_chunkList
[0];
340
CloseCore(
_chunkList
[0]);
417
if (
_chunkList
.Count == 0)
420
_chunkList
.Add(chunk);
423
ReadWriteData(false /* writing */, pbData, cbDataSize,
_chunkList
.Count-1, ref _currChunkOffset);
433
Debug.Assert(
_chunkList
.Count != 0);
435
if (
_chunkList
.Count > 1 ||
436
_chunkList
[0].Length != _currOffset)
448
ByteStreamGeometryContext.ReturnChunkToPool(
_chunkList
[0]);
453
if (
_chunkList
.Count == 1)
455
_chunkList
[0] = buffer;
460
_chunkList
.Add(buffer);
484
while (bufferOffset >
_chunkList
[currentChunk].Length)
486
bufferOffset -=
_chunkList
[currentChunk].Length;
495
_chunkList
[currentChunk].Length - bufferOffset);
501
Invariant.Assert((
_chunkList
[currentChunk] != null)
502
&& (
_chunkList
[currentChunk].Length >= bufferOffset + cbDataForThisChunk));
505
Invariant.Assert(
_chunkList
[currentChunk].Length > 0);
509
Marshal.Copy(
_chunkList
[currentChunk], bufferOffset, (IntPtr)pbData, cbDataForThisChunk);
513
Marshal.Copy((IntPtr)pbData,
_chunkList
[currentChunk], bufferOffset, cbDataForThisChunk);
525
if (
_chunkList
.Count == currentChunk)
530
int newChunkSize = Math.Min(2*
_chunkList
[
_chunkList
.Count-1].Length, c_maxChunkSize);
532
_chunkList
.Add(new byte[newChunkSize]);