Appearance
TryDecode Method
Definition
- Namespace:
JASE.Crypto - Assembly:
JASE.Crypto.dll
bool TryDecode(ReadOnlySpan<char> input, out ulong value)
csharp
bool TryDecode(ReadOnlySpan<char> input, out ulong value)Attempts to decode a Base-36 string into an unsigned integer value.
Parameters
| Name | Description |
|---|---|
input | The Base-36 encoded input to decode. Both lowercase and uppercase letters are accepted. |
value | When this method returns, contains the decoded value if decoding succeeded; otherwise, zero. |
Returns
true if decoding succeeded; otherwise, false. Decoding fails if input is empty, contains invalid characters, or overflows UInt64.