IBinaryInteger<TSelf>.WriteBigEndian 方法

定义

重载

WriteBigEndian(Byte[])

以 big-endian 格式将当前值写入给定数组。

WriteBigEndian(Span<Byte>)

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

WriteBigEndian(Byte[], Int32)

以 big-endian 格式将当前值写入给定数组。

WriteBigEndian(Byte[])

Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs

以 big-endian 格式将当前值写入给定数组。

public:
 virtual int WriteBigEndian(cli::array <System::Byte> ^ destination);
public virtual int WriteBigEndian (byte[] destination);
abstract member WriteBigEndian : byte[] -> int
override this.WriteBigEndian : byte[] -> int
Public Overridable Function WriteBigEndian (destination As Byte()) As Integer

参数

destination
Byte[]

当前值应写入到的数组。

返回

写入到 destination 的字节数。

适用于

WriteBigEndian(Span<Byte>)

Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs

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

public:
 virtual int WriteBigEndian(Span<System::Byte> destination);
public virtual int WriteBigEndian (Span<byte> destination);
abstract member WriteBigEndian : Span<byte> -> int
override this.WriteBigEndian : Span<byte> -> int
Public Overridable Function WriteBigEndian (destination As Span(Of Byte)) As Integer

参数

destination
Span<Byte>

当前值应写入到的跨度。

返回

写入到 destination 的字节数。

适用于

WriteBigEndian(Byte[], Int32)

Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs
Source:
IBinaryInteger.cs

以 big-endian 格式将当前值写入给定数组。

public:
 virtual int WriteBigEndian(cli::array <System::Byte> ^ destination, int startIndex);
public virtual int WriteBigEndian (byte[] destination, int startIndex);
abstract member WriteBigEndian : byte[] * int -> int
override this.WriteBigEndian : byte[] * int -> int
Public Overridable Function WriteBigEndian (destination As Byte(), startIndex As Integer) As Integer

参数

destination
Byte[]

当前值应写入到的数组。

startIndex
Int32

应在其中写入值的起始索引。

返回

从 开始写入到 destinationstartIndex字节数。

适用于