Method TryWriteBigEndian
- Namespace
- Zyl.VectorTraits.Numerics
- Assembly
- VectorTraits.dll
TryWriteBigEndian<TSelf>(TSelf, Span<byte>, out int)
Tries to write the current value, in big-endian format, to a given span.
public static bool TryWriteBigEndian<TSelf>(TSelf value, Span<byte> destination, out int bytesWritten) where TSelf : IBinaryInteger<TSelf>
Parameters
value
TSelfdestination
Span<byte>The span to which the current value should be written.
bytesWritten
intWhen this method returns, contains the number of bytes written to
destination
.
Returns
Type Parameters
TSelf