Читати англійською Редагувати

Поділитися через


IBinaryInteger<TSelf>.WriteLittleEndian Method

Definition

Overloads

WriteLittleEndian(Byte[])

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

WriteLittleEndian(Span<Byte>)

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

WriteLittleEndian(Byte[], Int32)

Writes the current value, in little-endian format, to a specified array starting at a specified index.

WriteLittleEndian(Byte[])

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

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

C#
public virtual int WriteLittleEndian(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

WriteLittleEndian(Span<Byte>)

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

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

C#
public virtual int WriteLittleEndian(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

WriteLittleEndian(Byte[], Int32)

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

Writes the current value, in little-endian format, to a specified array starting at a specified index.

C#
public virtual int WriteLittleEndian(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