mc_protocol v0.0.1 McProtocol.UUID

Utilities for working with UUIDs in Minecraft.

Can deal with both hyphenated, unhyphenated and binary UUIDs.

Summary

Functions

bin(u_u_i_d)
from_bin(bin_data)

Specs

from_bin(bin) :: %McProtocol.UUID{bin: term, hex: term} when bin: binary
from_hex(hex_data)

Specs

from_hex(str) ::
  %McProtocol.UUID{bin: term, hex: term} |
  :error when str: binary
hex(u_u_i_d)
hex_hyphen(u_u_i_d)
uuid4()