Method ReadFromBytes
ReadFromBytes(ref ReadOnlySpan<Byte>)
Initializes a new instance of the BigRational structure using the values in a read-only span of bytes.
Declaration
public static BigRational ReadFromBytes(ref ReadOnlySpan<byte> value)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Byte> | value | A read-only span of bytes representing the BigRational number. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Remarks
Reverse function of WriteToBytes(ref Span<Byte>)
Exceptions
Type | Condition |
---|---|
System.FormatException | Signals an invalid format. |