Int16.IBinaryInteger<Int16>.TryWriteLittleEndian Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

C#
bool IBinaryInteger<short>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten);

Parameters

destination
Span<Byte>

The span to which the current value should be written.

bytesWritten
Int32

When this method returns, contains the number of bytes written to destination.

Returns

true if the value was succesfully written to destination; otherwise, false.

Implements

Applies to

Product Versions
.NET 7, 8, 9, 10