共用方式為


UIntPtr.IBinaryInteger<UIntPtr>.TryWriteLittleEndian 方法

定義

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

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

參數

destination
Span<Byte>

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

bytesWritten
Int32

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

傳回

true 如果值已成功寫入 , destination 則為 ,否則為 false

實作

適用於