Int32.IBinaryInteger<Int32>.TryWriteBigEndian 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
尝试将当前值(采用大端格式)写入给定范围。
virtual bool System.Numerics.IBinaryInteger<System.Int32>.TryWriteBigEndian(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten) = System::Numerics::IBinaryInteger<int>::TryWriteBigEndian;
bool IBinaryInteger<int>.TryWriteBigEndian (Span<byte> destination, out int bytesWritten);
abstract member System.Numerics.IBinaryInteger<System.Int32>.TryWriteBigEndian : Span<byte> * int -> bool
override this.System.Numerics.IBinaryInteger<System.Int32>.TryWriteBigEndian : Span<byte> * int -> bool
Function TryWriteBigEndian (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean Implements IBinaryInteger(Of Integer).TryWriteBigEndian
参数
- bytesWritten
- Int32
返回
true
如果该值被成功写入, destination
则为 ;否则为 false
。