CRAM.Cursor (cram v0.1.0)

Copy Markdown View Source

Internal. Buffered reader over a byte source. Not part of the supported API.

Summary

Types

t()

@type t() :: %CRAM.Cursor{
  buffer: binary(),
  max_read: non_neg_integer(),
  path: Path.t() | nil,
  position: non_neg_integer(),
  read: (non_neg_integer(), non_neg_integer() ->
           {:ok, binary()} | {:error, term()})
}