BinaryPrimitives.WriteSingleLittleEndian(Span<Byte>, Single) 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 Single into a span of bytes, as little endian.
public:
static void WriteSingleLittleEndian(Span<System::Byte> destination, float value);
public static void WriteSingleLittleEndian(Span<byte> destination, float value);
static member WriteSingleLittleEndian : Span<byte> * single -> unit
Public Shared Sub WriteSingleLittleEndian (destination As Span(Of Byte), value As Single)
Parameters
- value
- Single
The value to write into the span of bytes.
Exceptions
destination is too small to contain a Single.
Remarks
Writes exactly 4 bytes to the beginning of the span.