Skip to content

UInt24.TryWriteLittleEndian Method

Definition

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

public bool TryWriteLittleEndian(Span<Byte> destination, out int bytesWritten);

View source

Parameters

Name Type Description
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

Boolean

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