BinaryPrimitives.TryWriteUInt32BigEndian(Span<Byte>, UInt32) Methode

Definition

Wichtig

Diese API ist nicht CLS-kompatibel.

Schreibt eine UInt32 in eine Spanne von Bytes, als big endian.

public:
 static bool TryWriteUInt32BigEndian(Span<System::Byte> destination, System::UInt32 value);
[System.CLSCompliant(false)]
public static bool TryWriteUInt32BigEndian(Span<byte> destination, uint value);
[<System.CLSCompliant(false)>]
static member TryWriteUInt32BigEndian : Span<byte> * uint32 -> bool
Public Shared Function TryWriteUInt32BigEndian (destination As Span(Of Byte), value As UInteger) As Boolean

Parameter

destination
Span<Byte>

Der Bereich der Bytes, in die der Wert geschrieben werden soll, als big endian.

value
UInt32

Der Wert, der in den Bytebereich geschrieben werden soll.

Gibt zurück

truewenn die Spanne groß genug ist, um ein UInt32; andernfalls . false

Attribute

Hinweise

Schreibt genau 4 Bytes an den Anfang der Spanne.

Gilt für: