BinaryPrimitives.TryWriteInt16BigEndian(Span<Byte>, Int16) Método

Definição

Escreve num Int16 intervalo de bytes, como big endian.

public:
 static bool TryWriteInt16BigEndian(Span<System::Byte> destination, short value);
public static bool TryWriteInt16BigEndian(Span<byte> destination, short value);
static member TryWriteInt16BigEndian : Span<byte> * int16 -> bool
Public Shared Function TryWriteInt16BigEndian (destination As Span(Of Byte), value As Short) As Boolean

Parâmetros

destination
Span<Byte>

O intervalo de bytes onde o valor deve ser escrito, como big endian.

value
Int16

O valor a escrever no espaço de bytes.

Devoluções

true se o vão for suficientemente grande para conter um Int16; caso contrário, false.

Observações

Escreve exatamente 2 bytes no início do intervalo.

Aplica-se a