This means we no longer accept any iolist in some of the functions, but we might bring it back later. There is also a new function, geef_ref:create_symbolic() to create symbolic references, since we can no longer differentiate between a name and an OID.
16 lines
208 B
Elixir
16 lines
208 B
Elixir
defmodule Geef.Oid do
|
|
|
|
@type t :: <<_ :: 160>>
|
|
|
|
@spec parse(iolist) :: t
|
|
def parse(str) do
|
|
:geef_oid.parse(str)
|
|
end
|
|
|
|
@spec hex(t) :: String.t
|
|
def hex(oid) do
|
|
:geef_oid.hex(oid)
|
|
end
|
|
|
|
end
|