ICustomBitmapDataRowUnsafeGetRefAsT Method
Gets a reference to a value interpreted as
T within the current row at the specified
x index.
This method is similar to
GetRefAsT(Int32) but it does not check whether
x is valid for
RowSize and the size of
T.
It may provide a better performance but if
x is invalid, then memory can be either corrupted or an
AccessViolationException can be thrown.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.0.0
[SecurityCriticalAttribute]
ref T UnsafeGetRefAs<T>(
int x
)
where T : struct, new()
<SecurityCriticalAttribute>
Function UnsafeGetRefAs(Of T As {Structure, New}) (
x As Integer
) As T
[SecurityCriticalAttribute]
generic<typename T>
where T : value class, gcnew()
T% UnsafeGetRefAs(
int x
)
[<SecurityCriticalAttribute>]
abstract UnsafeGetRefAs :
x : int -> 'T when 'T : struct, new()
- x Int32
- The x-coordinate of the value within the row to retrieve. The valid range depends on the size of T.
- T
- The type of the value to return a reference for. Must be a value type without managed references.
TA reference to a value interpreted as
T within the current row at the specified
x index.