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

In-memory sink. Chunks are kept in reverse order and concatenated on
`to_binary/1`.

# `t`

```elixir
@type t() :: %BAM.Sink.Memory{closed: boolean(), iodata: iodata()}
```

# `new`

```elixir
@spec new() :: t()
```

# `to_binary`

```elixir
@spec to_binary(t()) :: binary()
```

Concatenates every chunk written so far.

---

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