Skip to content

UInt24.TryWriteBigEndian Method ​

Definition ​

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

c#
public bool TryWriteBigEndian(Span<Byte> destination, out int bytesWritten);

View source

Parameters ​

NameTypeDescription
destinationSpan<Byte>The span to which the current value should be written.
bytesWrittenInt32When this method returns, contains the number of bytes written to destination.

Returns ​

Boolean

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