VCF.Writer (VCF v1.0.0)
View SourceCanonical VCF encoding and output destinations.
Summary
Functions
Encodes a document or stream to a canonical VCF binary.
Encodes a header and record enumerable to a canonical VCF binary.
Encodes and writes to a path or caller-owned I/O device.
Functions
@spec encode( VCF.Document.t() | VCF.Stream.t(), keyword() ) :: {:ok, binary()} | {:error, VCF.Error.t() | [VCF.Error.t()]}
Encodes a document or stream to a canonical VCF binary.
@spec encode(VCF.Header.t(), Enumerable.t(), keyword()) :: {:ok, binary()} | {:error, VCF.Error.t() | [VCF.Error.t()]}
Encodes a header and record enumerable to a canonical VCF binary.
@spec write(term(), VCF.Document.t() | VCF.Stream.t(), keyword()) :: :ok | {:error, VCF.Error.t() | [VCF.Error.t()]}
Encodes and writes to a path or caller-owned I/O device.
@spec write(term(), VCF.Header.t(), Enumerable.t(), keyword()) :: :ok | {:error, VCF.Error.t() | [VCF.Error.t()]}