BinaryPrimitives.TryWriteIntPtrLittleEndian(Span<Byte>, IntPtr) Method
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 little endian.
public:
static bool TryWriteIntPtrLittleEndian(Span<System::Byte> destination, IntPtr value);
public static bool TryWriteIntPtrLittleEndian(Span<byte> destination, IntPtr value);
static member TryWriteIntPtrLittleEndian : Span<byte> * nativeint -> bool
Public Shared Function TryWriteIntPtrLittleEndian (destination As Span(Of Byte), value As IntPtr) As Boolean
Parameters
- value
-
IntPtr
nativeint
The value to write into the span of bytes.
Returns
false if the span is too small to contain the value; otherwise, true.
Remarks
Writes exactly 4 bytes on 32-bit platforms -or- 8 bytes on 64-bit platforms to the beginning of the span.