UXID.Decoder (UXID v2.2.0)

View Source

Decodes UXID strings into Codec structs

Summary

Functions

d(int)

decode_rand(struct)

decode_rand_size(struct)

decode_size(struct)

decode_time(struct)

@spec decode_time(UXID.Codec.t()) :: UXID.Codec.t()

process(struct)

@spec process(UXID.Codec.t()) :: {:ok, UXID.Codec.t()} | {:error, String.t()}

separate_encoded(struct)

separate_prefix(struct)

@spec separate_prefix(UXID.Codec.t()) :: UXID.Codec.t()