INumericBitConverterTNumericTryWriteBytes Method
Converts a numeric value into a span of bytes.
Namespace: Jodosoft.NumericsAssembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
bool TryWriteBytes(
Span<byte> destination,
TNumeric value
)
Function TryWriteBytes (
destination As Span(Of Byte),
value As TNumeric
) As Boolean
bool TryWriteBytes(
Span<unsigned char> destination,
TNumeric value
)
abstract TryWriteBytes :
destination : Span<byte> *
value : 'TNumeric -> bool
- destination SpanByte
- When this method returns, the bytes representing the converted numeric value.
- value TNumeric
- The numeric value to convert.
Boolean if the conversion was successful;
otherwise.