Skip to content

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 ​

NameDescription
inputThe Base-36 encoded input to decode. Both lowercase and uppercase letters are accepted.
valueWhen 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.