BinaryPrimitives.TryWriteInt32BigEndian(Span<Byte>, Int32) Método

Definição

Escreve num Int32 intervalo de bytes, como big endian.

public:
 static bool TryWriteInt32BigEndian(Span<System::Byte> destination, int value);
public static bool TryWriteInt32BigEndian(Span<byte> destination, int value);
static member TryWriteInt32BigEndian : Span<byte> * int -> bool
Public Shared Function TryWriteInt32BigEndian (destination As Span(Of Byte), value As Integer) As Boolean

Parâmetros

destination
Span<Byte>

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

value
Int32

O valor a escrever no espaço de bytes.

Devoluções

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

Observações

Escreve exatamente 4 bytes até ao início do intervalo.

Aplica-se a