BAM.Sink.Memory (BAM v0.1.0)

Copy Markdown View Source

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

Summary

Functions

Concatenates every chunk written so far.

Types

t()

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

Functions

new()

@spec new() :: t()

to_binary(memory)

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

Concatenates every chunk written so far.