BigInteger.IBinaryInteger<BigInteger>.TryWriteBigEndian 方法

定义

尝试以 big-endian 格式将当前值写入给定范围。

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

参数

destination
Span<Byte>

当前值应写入到的跨度。

bytesWritten
Int32

当此方法返回时,包含写入到 destination 的字节数。

返回

true 如果成功将值写入 ,则为 destination;否则为 false

实现

适用于