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, out 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.
Gets an element of the array by its index.
Gets an element of the array by its index.
Gets the address of the array element.
Gets the address of the array element.
Computes 32-bit hash code for the vector.
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<THashFunction>(Void* source, long length, int hash, THashFunction hashFunction, bool salted = true) where THashFunction : struct, ISupplier<int, int, int>
Computes 32-bit hash code for the block of memory.
Computes 32-bit hash code for the block of memory.
public static long GetHashCode64<T>(Func<T, int, long> getter, int count, T arg, bool salted = true)
Computes 64-bit hash code for the vector.
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<THashFunction>(Void* source, long length, long hash, THashFunction hashFunction, bool salted = true) where THashFunction : struct, ISupplier<long, long, long>
Computes 64-bit hash code for the block of memory, 64-bit version.
Computes 64-bit hash code for the block of memory.
Gets length of the zero-base one-dimensional array.
public static TBase& modreq(System.Runtime.InteropServices.InAttribute) GetReadonlyRef<T, TBase>(this T[] array, IntPtr 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.
Provides the fast way to check whether the specified type accepts null value as valid value.
Computes transient hash code of the specified pointer.
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.
Creates shallow copy of the given object.
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.
Converts two bits to 32-bit signed integer.
Returns the runtime handle associated with type T.