Intrinsics
Represents highly optimized runtime intrinsic methods.
Returns an address of the given by-ref parameter.
Indicates that two managed pointers are equal.
Converts typed reference into managed pointer.
public static void Bitcast<T, TResult>(ref T input, out TResult output) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType) where TResult : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
Obtain a value of type TResult by
reinterpreting the object representation of T.
Provides unified behavior of type cast for reference and value types.
Sets all bits of allocated memory to zero.
Bitwise comparison of two memory blocks.
Copies one value into another.
public static void Copy<T>(T* input, T* output) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
Copies one value into another.
public static void Copy<T>(ref T source, ref T destination, long count) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
Copies the specified number of elements from source address to the destination address.
public static void CopyUnaligned<T>(T* input, T* output) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
Copies one value into another assuming unaligned memory access.
Returns default value of the given type.
Computes equality between two blocks of memory.
Throws arbitrary object as exception.
public static int GetHashCode32(Void* source, long length, int hash, Func<int, int, int> hashFunction, bool salted = true)
Computes 32-bit hash code for the block of memory.
public static int GetHashCode32(Void* source, long length, int hash, ref ValueFunc hashFunction, bool salted = true)
Computes 32-bit hash code for the block of memory.
Computes 32-bit hash code for the block of memory.
public static long GetHashCode64(Void* source, long length, long hash, Func<long, long, long> hashFunction, bool salted = true)
Computes 64-bit hash code for the block of memory, 64-bit version.
public static long GetHashCode64(Void* source, long length, long hash, ref ValueFunc hashFunction, bool salted = true)
Computes 64-bit hash code for the block of memory, 64-bit version.
Computes 64-bit hash code for the block of memory.
public static T& modreq(System.Runtime.InteropServices.InAttribute) GetReadonlyRef<T>(this T[] array, long index)
Gets a reference to the array element with restricted mutability.
public static TBase& modreq(System.Runtime.InteropServices.InAttribute) GetReadonlyRef<T, TBase>(this T[] array, long index) where T : TBase
Allows to reinterpret managed pointer to array element.
Determines whether one or more bit fields are set in the given value.
Indicates that specified value type is the default value.
Checks whether the specified object is exactly of the specified type.
Determines whether the specified managed pointer is null.
Provides the fast way to check whether the specified type accepts null value as valid value.
public static void Reverse<T>(ref T value) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
Reverse bytes in the specified value of blittable type.
Swaps two values.
public static void Swap<T>(T* first, T* second) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
Swaps two values.
Throws arbitrary object as exception.
Throws NullReferenceException if given managed pointer is null.
Returns the runtime handle associated with type T.