Unsafe.Write<T>(Void*, T) 方法
定义
将 T 类型的值写入给定位置。Writes a value of type T to the given location.
public:
generic <typename T>
static void Write(void* destination, T value);
public static void Write<T> (void* destination, T value);
static member Write : nativeptr<unit> * 'T -> unit
类型参数
- T
要写入的值的类型。The type of value to write.
参数
- destination
- Void*
要写入到其中的位置。The location to write to.
- value
- T
要写入的值。The value to write.