IBinaryInteger<TSelf>.WriteLittleEndian 方法

定义

重载

WriteLittleEndian(Byte[])

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

WriteLittleEndian(Span<Byte>)

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

WriteLittleEndian(Byte[], Int32)

以 little-endian 格式将当前值写入从指定索引开始的指定数组。

WriteLittleEndian(Byte[])

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

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

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

参数

destination
Byte[]

当前值应写入到的数组。

返回

写入到 destination 的字节数。

适用于

WriteLittleEndian(Span<Byte>)

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

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

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

参数

destination
Span<Byte>

当前值应写入到的跨度。

返回

写入到 destination 的字节数。

适用于

WriteLittleEndian(Byte[], Int32)

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

以 little-endian 格式将当前值写入从指定索引开始的指定数组。

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

参数

destination
Byte[]

当前值应写入到的数组。

startIndex
Int32

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

返回

从 开始写入到 destinationstartIndex的字节数。

适用于