5 writes to _iconData
System.Drawing.Common (5)
System\Drawing\Icon.cs (5)
67
_iconData
= new byte[(int)f.Length];
82
_iconData
= original._iconData;
102
_iconData
= new byte[(int)stream.Length];
119
_iconData
= new byte[(int)stream.Length];
127
_iconData
= (byte[])info.GetValue("IconData", typeof(byte[]))!;
22 references to _iconData
System.Drawing.Common (22)
System\Drawing\Icon.cs (22)
68
f.ReadExactly(
_iconData
);
82
_iconData = original.
_iconData
;
84
if (
_iconData
is null)
103
stream.ReadExactly(
_iconData
);
120
stream.ReadExactly(
_iconData
);
135
if (
_iconData
is not null)
137
si.AddValue("IconData",
_iconData
, typeof(byte[]));
406
if (
_iconData
is null || !_handle.IsNull)
411
SpanReader<byte> reader = new(
_iconData
);
534
if (endOffset >
_iconData
.Length)
616
Debug.Assert(
_iconData
is not null);
618
stream.Write(
_iconData
, (int)_bestImageOffset, (int)_bestBytesInRes);
628
if (
_iconData
is not null && _bestBitDepth == 32)
633
Debug.Assert(_bestImageOffset >= 0 && (_bestImageOffset + _bestBytesInRes) <=
_iconData
.Length, "Illegal offset/length for the Icon data");
650
Marshal.Copy(
_iconData
, newOffset + j * width, (IntPtr)pixelPtr, lineLength);
770
if (
_iconData
is not null &&
_iconData
.Length >= _bestImageOffset + 8)
772
int iconSignature1 = BitConverter.ToInt32(
_iconData
, (int)_bestImageOffset);
773
int iconSignature2 = BitConverter.ToInt32(
_iconData
, (int)_bestImageOffset + 4);
796
if (
_iconData
is not null)
798
outputStream.Write(
_iconData
, 0,
_iconData
.Length);