UXID.Decoder (UXID v2.10.0)

Copy Markdown 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, :empty | :invalid_length | :invalid_character}

separate_encoded(struct)

separate_prefix(struct)

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