/// <summary> /// <para> /// Returns a 22-character alphanumeric representation of the given <see cref="Guid"/> ID. /// </para> /// </summary> /// <param name="id">Any sequence of bytes stored in a <see cref="Guid"/>.</param> public static string ToAlphanumeric(this Guid id) => IdEncoder.GetAlphanumeric(id);
/// <summary> /// <para> /// Outputs a 22-character alphanumeric representation of the given <see cref="Guid"/> ID. /// </para> /// </summary> /// <param name="id">Any sequence of bytes stored in a <see cref="Guid"/>.</param> /// <param name="bytes">At least 22 bytes, to write the alphanumeric representation to.</param> public static void ToAlphanumeric(this Guid id, Span <byte> bytes) => IdEncoder.GetAlphanumeric(id, bytes);
/// <summary> /// <para> /// Returns a 16-character alphanumeric representation of the given <see cref="decimal"/> ID. /// </para> /// </summary> /// <param name="id">A positive decimal with 0 decimal places, consisting of no more than 28 digits, such as a value generated using <see cref="DistributedId.CreateId"/>.</param> public static string ToAlphanumeric(this decimal id) => IdEncoder.GetAlphanumeric(id);