INumericBitConverterTNumericTryWriteBytes Method

Converts a numeric value into a span of bytes.

Definition

Namespace: Jodosoft.Numerics
Assembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
bool TryWriteBytes(
	Span<byte> destination,
	TNumeric value
)

Parameters

destination  SpanByte
When this method returns, the bytes representing the converted numeric value.
value  TNumeric
The numeric value to convert.

Return Value

Boolean
if the conversion was successful; otherwise.

See Also