The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
SafeBuffer::Write<T> Method (UInt64, T)
.NET Framework (current version)
Writes a value type to memory at the given location.
This API is not CLS-compliant.
Assembly: mscorlib (in mscorlib.dll)
public: generic<typename T> where T : value struct, gcnew() [CLSCompliantAttribute(false)] void Write( unsigned long long byteOffset, T value )
Parameters
- byteOffset
-
Type:
System::UInt64
The location at which to start writing. You may have to consider alignment issues.
- value
-
Type:
T
The value to write.
Type Parameters
- T
The value type to write.
| Exception | Condition |
|---|---|
| InvalidOperationException | The Initialize method has not been called. |
This method is equivalent to the following code:
*(T*)(bytePtr + byteOffset) = value;
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: