IBinaryInteger<TSelf>.WriteBigEndian 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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
- 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
- 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的字节数。
适用于
WriteBigEndian(Byte[], Int32)
- Source:
- IBinaryInteger.cs
- Source:
- IBinaryInteger.cs
- 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
应在其中写入值的起始索引。
返回
写入到 destination 起始 startIndex位置的字节数。