Int16.IBinaryInteger<Int16>.TryWriteBigEndian 方法

定義

嘗試將目前值以大端格式寫入指定的範圍。

 virtual bool System.Numerics.IBinaryInteger<System.Int16>.TryWriteBigEndian(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten) = System::Numerics::IBinaryInteger<short>::TryWriteBigEndian;
bool IBinaryInteger<short>.TryWriteBigEndian (Span<byte> destination, out int bytesWritten);
abstract member System.Numerics.IBinaryInteger<System.Int16>.TryWriteBigEndian : Span<byte> * int -> bool
override this.System.Numerics.IBinaryInteger<System.Int16>.TryWriteBigEndian : Span<byte> * int -> bool
Function TryWriteBigEndian (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean Implements IBinaryInteger(Of Short).TryWriteBigEndian

參數

destination
Span<Byte>

目前值應該寫入到其中的範圍。

bytesWritten
Int32

當此方法傳回時,包含寫入至 destination 的位元組數目。

傳回

true 如果值已順利寫入 ,則為 destinationfalse 否則為 。

實作

適用於