BinaryPrimitives.TryWriteSingleLittleEndian(Span<Byte>, Single) Método
Definição
public:
static bool TryWriteSingleLittleEndian(Span<System::Byte> destination, float value);
public static bool TryWriteSingleLittleEndian (Span<byte> destination, float value);
static member TryWriteSingleLittleEndian : Span<byte> * single -> bool
Public Shared Function TryWriteSingleLittleEndian (destination As Span(Of Byte), value As Single) As Boolean
Parâmetros
O intervalo de bytes em que o valor deve ser gravado, como little endian.The span of bytes where the value is to be written, as little endian.
- value
- Single
O valor a ser gravado no intervalo de bytes.The value to write into the span of bytes.
Retornos
true se o intervalo for grande o suficiente para conter um Single; caso contrário, false.true if the span is large enough to contain a Single; otherwise, false.
Comentários
Grava exatamente 4 bytes no início do span.Writes exactly 4 bytes to the beginning of the span.