System.Runtime.CompilerServices.Unsafe Contains generic, low-level functionality for manipulating pointers. Adds an element offset to the given reference. The reference to add the offset to. The offset to add. The type of reference. A new reference that reflects the addition of offset to pointer. Adds an element offset to the given reference. The reference to add the offset to. The offset to add. The type of reference. A new reference that reflects the addition of offset to pointer. Adds an element offset to the given void pointer. The void pointer to add the offset to. The offset to add. The type of void pointer. A new void pointer that reflects the addition of offset to the specified pointer. Adds a byte offset to the given reference. The reference to add the offset to. The offset to add. The type of reference. A new reference that reflects the addition of byte offset to pointer. Determines whether the specified references point to the same location. The first reference to compare. The second reference to compare. The type of reference. if and point to the same location; otherwise, . Casts the given object to the specified type. The object to cast. The type which the object will be cast to. The original object, casted to the given type. Reinterprets the given reference as a reference to a value of type . The reference to reinterpret. The type of reference to reinterpret. The desired type of the reference. A reference to a value of type . Returns a pointer to the given by-ref parameter. The object whose pointer is obtained. The type of object. A pointer to the given value. Reinterprets the given read-only reference as a reference. The read-only reference to reinterpret. The type of reference. A reference to a value of type . Reinterprets the given location as a reference to a value of type . The location of the value to reference. The type of the interpreted location. A reference to a value of type . Determines the byte offset from origin to target from the given references. The reference to origin. The reference to target. The type of reference. Byte offset from origin to target i.e. - . Copies a value of type to the given location. The location to copy to. A pointer to the value to copy. The type of value to copy. Copies a value of type to the given location. The location to copy to. A reference to the value to copy. The type of value to copy. Copies bytes from the source address to the destination address. The destination address to copy to. The source address to copy from. The number of bytes to copy. Copies bytes from the source address to the destination address. The destination address to copy to. The source address to copy from. The number of bytes to copy. Copies bytes from the source address to the destination address without assuming architecture dependent alignment of the addresses. The destination address to copy to. The source address to copy from. The number of bytes to copy. Copies bytes from the source address to the destination address without assuming architecture dependent alignment of the addresses. The destination address to copy to. The source address to copy from. The number of bytes to copy. Initializes a block of memory at the given location with a given initial value. The address of the start of the memory block to initialize. The value to initialize the block to. The number of bytes to initialize. Initializes a block of memory at the given location with a given initial value. The address of the start of the memory block to initialize. The value to initialize the block to. The number of bytes to initialize. Initializes a block of memory at the given location with a given initial value without assuming architecture dependent alignment of the address. The address of the start of the memory block to initialize. The value to initialize the block to. The number of bytes to initialize. Initializes a block of memory at the given location with a given initial value without assuming architecture dependent alignment of the address. The address of the start of the memory block to initialize. The value to initialize the block to. The number of bytes to initialize. Returns a value that indicates whether a specified reference is greater than another specified reference. The first value to compare. The second value to compare. The type of the reference. if is greater than ; otherwise, . Returns a value that indicates whether a specified reference is less than another specified reference. The first value to compare. The second value to compare. The type of the reference. if is less than ; otherwise, . Reads a value of type from the given location. The location to read from. The type to read. An object of type read from the given location. Reads a value of type from the given location without assuming architecture dependent alignment of the addresses. The location to read from. The type to read. An object of type read from the given location. Reads a value of type from the given location without assuming architecture dependent alignment of the addresses. The location to read from. The type to read. An object of type read from the given location. Returns the size of an object of the given type parameter. The type of object whose size is retrieved. The size of an object of type . Bypasses definite assignment rules for a given value. The uninitialized object. The type of the uninitialized object. Subtracts an element offset from the given reference. The reference to subtract the offset from. The offset to subtract. The type of reference. A new reference that reflects the subtraction of offset from pointer. Subtracts an element offset from the given reference. The reference to subtract the offset from. The offset to subtract. The type of reference. A new reference that reflects the subtraction of offset from pointer. Subtracts an element offset from the given void pointer. The void pointer to subtract the offset from. The offset to subtract. The type of the void pointer. A new void pointer that reflects the subtraction of offset from the specified pointer. Subtracts a byte offset from the given reference. The reference to subtract the offset from. The offset to subtract. The type of reference. A new reference that reflects the subtraction of byte offset from pointer. Returns a to a boxed value. The value to unbox. The type to be unboxed. is , and is a non-nullable value type. is not a boxed value type. -or- is not a boxed . cannot be found. A to the boxed value . Writes a value of type to the given location. The location to write to. The value to write. The type of value to write. Writes a value of type to the given location without assuming architecture dependent alignment of the addresses. The location to write to. The value to write. The type of value to write. Writes a value of type to the given location without assuming architecture dependent alignment of the addresses. The location to write to. The value to write. The type of value to write.