System.Runtime.CompilerServices.Unsafe Contains generic, low-level functionality for manipulating pointers. Reads a value of type from the given location. The type to read. The location to read from. An object of type read from the given location. Writes a value of type to the given location. The type of value to write. The location to write to. The value to write. Copies a value of type to the given location. The type of value to copy. The location to copy to. A reference to the value to copy. Copies a value of type to the given location. The type of value to copy. The location to copy to. A pointer to the value to copy. Returns a pointer to the given by-ref parameter. The type of object. The object whose pointer is obtained. A pointer to the given value. 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 . Casts the given object to the specified type. The type which the object will be cast to. The object to cast. The original object, casted to the given type. Reinterprets the given location as a reference to a value of type . The type of the interpreted location. The location of the value to reference. A reference to a value of type . Reinterprets the given reference as a reference to a value of type . The type of reference to reinterpret. The desired type of the reference. The reference to reinterpret. A reference to a value of type . Adds an element offset to the given reference. The type of reference. The reference to add the offset to. The offset to add. A new reference that reflects the addition of offset to pointer. Subtracts an element offset from the given reference. The type of reference. The reference to subtract the offset from. The offset to subtract. A new reference that reflects the subraction of offset from pointer. Determines whether the specified references point to the same location. The first reference to compare. The second reference to compare. true if and point to the same location; otherwise false. 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. 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.