BinaryPrimitives.WriteHalfLittleEndian(Span<Byte>, Half) 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 Half into a span of bytes, as little endian.
public:
static void WriteHalfLittleEndian(Span<System::Byte> destination, Half value);
public static void WriteHalfLittleEndian(Span<byte> destination, Half value);
static member WriteHalfLittleEndian : Span<byte> * Half -> unit
Public Shared Sub WriteHalfLittleEndian (destination As Span(Of Byte), value As Half)
Parameters
- value
- Half
The value to write into the span of bytes.
Exceptions
destination
is too small to contain a Half.
Remarks
Writes exactly 2 bytes to the beginning of the span.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.