# `BAM.Handle`
[🔗](https://github.com/baoulo/bam-elixir/blob/v0.1.0/lib/bam/handle.ex#L1)

Open BAM input.

The struct is opaque. `source` and `state` implement `BAM.Source`. `gate`
is shared by every copy of the handle so `BAM.close/1` and a stream that
stops early release the same file.

# `t`

```elixir
@type t() :: %BAM.Handle{
  gate: pid(),
  limits: BAM.Limits.t(),
  mode: :strict | :permissive,
  origin: Path.t() | :memory,
  source: module(),
  state: term()
}
```

---

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