Прочетете на английски Редактиране

Споделяне чрез


IBinaryInteger<TSelf>.WriteBigEndian Method

Definition

Overloads

WriteBigEndian(Byte[])

Writes the current value, in big-endian format, to a given array.

WriteBigEndian(Span<Byte>)

Writes the current value, in big-endian format, to a given span.

WriteBigEndian(Byte[], Int32)

Writes the current value, in big-endian format, to a given array.

WriteBigEndian(Byte[])

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

Writes the current value, in big-endian format, to a given array.

C#
public virtual int WriteBigEndian(byte[] destination);

Parameters

destination
Byte[]

The array to which the current value should be written.

Returns

The number of bytes written to destination.

Applies to

.NET 10 и други версии
Продукт Версии
.NET 7, 8, 9, 10

WriteBigEndian(Span<Byte>)

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

Writes the current value, in big-endian format, to a given span.

C#
public virtual int WriteBigEndian(Span<byte> destination);

Parameters

destination
Span<Byte>

The span to which the current value should be written.

Returns

The number of bytes written to destination.

Applies to

.NET 10 и други версии
Продукт Версии
.NET 7, 8, 9, 10

WriteBigEndian(Byte[], Int32)

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

Writes the current value, in big-endian format, to a given array.

C#
public virtual int WriteBigEndian(byte[] destination, int startIndex);

Parameters

destination
Byte[]

The array to which the current value should be written.

startIndex
Int32

The starting index at which the value should be written.

Returns

The number of bytes written to destination starting at startIndex.

Applies to

.NET 10 и други версии
Продукт Версии
.NET 7, 8, 9, 10