BinaryPrimitives.WriteSingleBigEndian(Span<Byte>, Single) Method

Definition

Writes a Single into a span of bytes, as big endian.

public:
 static void WriteSingleBigEndian(Span<System::Byte> destination, float value);
public static void WriteSingleBigEndian (Span<byte> destination, float value);
static member WriteSingleBigEndian : Span<byte> * single -> unit
Public Shared Sub WriteSingleBigEndian (destination As Span(Of Byte), value As Single)

Parameters

destination
Span<Byte>

The span of bytes where the value is to be written, as big endian.

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.

Applies to