BAM.Handle (BAM v0.1.0)

Copy Markdown View Source

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.

Summary

Types

t()

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