BitConverterN Class

Converts numeric values to arrays of bytes, and an array of bytes to numeric values.

Definition

Namespace: Jodosoft.Numerics
Assembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public static class BitConverterN
Inheritance
Object    BitConverterN

Methods

ConvertedSizeTNumeric Returns the number of bytes that will be used to ToNumeric(Byte, Int32) to form a numeric value, which is also the length of byte arrays returned by GetBytes(TNumeric).
GetBytesTNumeric Returns the specified numeric value as an array of bytes.
ToNumericTNumeric(ReadOnlySpanByte) Converts a numeric value into a span of bytes.
ToNumericTNumeric(Byte, Int32) Returns a numeric value converted from bytes at a specified position in a byte array. The number of bytes can be obtained from the ConvertedSize method.
TryWriteBytesTNumeric Converts a numeric value into a span of bytes.

See Also