In-memory sink. Chunks are kept in reverse order and concatenated on to_binary/1.
to_binary/1
Concatenates every chunk written so far.
@type t() :: %BAM.Sink.Memory{closed: boolean(), iodata: iodata()}
@spec new() :: t()
@spec to_binary(t()) :: binary()