BinaryPrimitives.WriteIntPtrBigEndian(Span<Byte>, IntPtr) Method
In this article
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes a IntPtr into a span of bytes, as big endian.
public:
static void WriteIntPtrBigEndian(Span<System::Byte> destination, IntPtr value);
public static void WriteIntPtrBigEndian(Span<byte> destination, IntPtr value);
static member WriteIntPtrBigEndian : Span<byte> * nativeint -> unit
Public Shared Sub WriteIntPtrBigEndian (destination As Span(Of Byte), value As IntPtr)
- value
-
IntPtr
nativeint
The value to write into the span of bytes.
destination
is too small to contain a IntPtr.
Writes exactly 4 bytes on 32-bit platforms -or- 8 bytes on 64-bit platforms to the beginning of the span.
Applies to
Product | Versions |
---|---|
.NET | 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: