1 write to bestBytesInRes
System.Drawing (1)
commonui\System\Drawing\Icon.cs (1)
729bestBytesInRes = EntryTemp.dwBytesInRes;
11 references to bestBytesInRes
System.Drawing (11)
commonui\System\Drawing\Icon.cs (11)
708if (0 == bestBytesInRes) 736Debug.Assert(bestImageOffset >= 0 && bestBytesInRes >= 0 && (bestImageOffset + bestBytesInRes) <= iconData.Length, "Illegal offset/length for the Icon data"); 742if (bestBytesInRes < 0) { 748endOffset = checked(bestImageOffset + bestBytesInRes); 761byte[] alignedBuffer = new byte[bestBytesInRes]; 762Array.Copy(this.iconData, bestImageOffset, alignedBuffer, 0, bestBytesInRes); 765handle = SafeNativeMethods.CreateIconFromResourceEx(pbAlignedBuffer, bestBytesInRes, true, 0x00030000, 0, 0, 0); 770handle = SafeNativeMethods.CreateIconFromResourceEx(checked(pbIconData + bestImageOffset), bestBytesInRes, true, 0x00030000, 0, 0, 0); 967Debug.Assert(bestImageOffset >= 0 && (bestImageOffset + bestBytesInRes) <= iconData.Length, "Illegal offset/length for the Icon data"); 1109stream.Write(iconData, bestImageOffset, bestBytesInRes);