18 writes to _parameterValue
System.Drawing.Common (18)
System\Drawing\Imaging\EncoderParameter.cs (18)
55_parameterValue = 0; 69_parameterValue = Marshal.AllocHGlobal(sizeof(byte)); 84_parameterValue = Marshal.AllocHGlobal(sizeof(byte)); 96_parameterValue = Marshal.AllocHGlobal(sizeof(short)); 108_parameterValue = Marshal.AllocHGlobal(sizeof(int)); 120_parameterValue = Marshal.AllocHGlobal(2 * sizeof(int)); 133_parameterValue = Marshal.AllocHGlobal(2 * sizeof(int)); 151_parameterValue = Marshal.AllocHGlobal(4 * sizeof(int)); 166_parameterValue = Marshal.StringToHGlobalAnsi(value); 177_parameterValue = Marshal.AllocHGlobal(_numberOfValues); 190_parameterValue = Marshal.AllocHGlobal(_numberOfValues); 202_parameterValue = Marshal.AllocHGlobal(checked(_numberOfValues * sizeof(short))); 214_parameterValue = Marshal.AllocHGlobal(checked(_numberOfValues * sizeof(int))); 237_parameterValue = Marshal.AllocHGlobal(checked(_numberOfValues * 2 * sizeof(int))); 257_parameterValue = Marshal.AllocHGlobal(checked(_numberOfValues * 2 * sizeof(int))); 284_parameterValue = Marshal.AllocHGlobal(checked(_numberOfValues * 4 * sizeof(int))); 313_parameterValue = Marshal.AllocHGlobal(bytes); 339_parameterValue = Marshal.AllocHGlobal(bytes);
29 references to _parameterValue
System.Drawing.Common (29)
System\Drawing\Imaging\EncoderParameter.cs (29)
21Value = (void*)_parameterValue 50if (_parameterValue != 0) 52Marshal.FreeHGlobal(_parameterValue); 71*(byte*)_parameterValue = value; 86*(byte*)_parameterValue = value; 98*(short*)_parameterValue = value; 110*(int*)_parameterValue = (int)value; 122((int*)_parameterValue)[0] = numerator; 123((int*)_parameterValue)[1] = denominator; 135((int*)_parameterValue)[0] = (int)rangebegin; 136((int*)_parameterValue)[1] = (int)rangeend; 153((int*)_parameterValue)[0] = numerator1; 154((int*)_parameterValue)[1] = demoninator1; 155((int*)_parameterValue)[2] = numerator2; 156((int*)_parameterValue)[3] = demoninator2; 179Marshal.Copy(value, 0, _parameterValue, _numberOfValues); 192Marshal.Copy(value, 0, _parameterValue, _numberOfValues); 204Marshal.Copy(value, 0, _parameterValue, _numberOfValues); 216int* dest = (int*)_parameterValue; 241((int*)_parameterValue)[i * 2 + 0] = numerator[i]; 242((int*)_parameterValue)[i * 2 + 1] = denominator[i]; 261((int*)_parameterValue)[i * 2 + 0] = (int)rangebegin[i]; 262((int*)_parameterValue)[i * 2 + 1] = (int)rangeend[i]; 288((int*)_parameterValue)[i * 4 + 0] = numerator1[i]; 289((int*)_parameterValue)[i * 4 + 1] = denominator1[i]; 290((int*)_parameterValue)[i * 4 + 2] = numerator2[i]; 291((int*)_parameterValue)[i * 4 + 3] = denominator2[i]; 315new ReadOnlySpan<byte>((void*)Value, bytes).CopyTo(new Span<byte>((void*)_parameterValue, bytes)); 341new ReadOnlySpan<byte>((void*)value, bytes).CopyTo(new Span<byte>((void*)_parameterValue, bytes));