# `Drafter.Native`
[🔗](https://github.com/jaman/drafter/blob/v0.6.1/lib/drafter/native.ex#L1)

Where drafter's compiled native code is: `priv/native/<os>-<cpu>`, such as
`darwin-aarch64`, `linux-x86_64` or `windows-x86_64`.

The operating system is `darwin`, `linux` or `windows`; the processor is `x86_64`
or `aarch64`. Builds for different machines sit side by side in one checkout and
each loads its own. The `Makefile` derives the same folder name from the machine
it builds for, including a target given to a cross compiler as `-target`.

# `directory`

```elixir
@spec directory() :: String.t()
```

Returns the folder name of this machine's native code, such as `"linux-x86_64"`.

# `path`

```elixir
@spec path(String.t()) :: charlist()
```

Returns the file `name` of this machine's native code, as a charlist for `:erlang.load_nif/2`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
