Bounded selection of a changeset-owned source with its atomic revision.
Summary
Functions
Selects requested lines without materializing or indexing the full resident source.
Copies only a bounded prefix out of the selected resident source.
Types
@type lines_result() :: {:ok, {:memory, binary(), non_neg_integer(), non_neg_integer() | :unknown, boolean()} | {:disk, String.t()}, non_neg_integer()} | {:error, term()}
@type prefix_result() :: {:ok, {:memory, binary(), boolean()} | {:disk, String.t()}, non_neg_integer()} | {:error, term()}
Functions
@spec lines( source(), non_neg_integer(), non_neg_integer(), pos_integer(), pos_integer() ) :: lines_result()
Selects requested lines without materializing or indexing the full resident source.
@spec prefix(source(), non_neg_integer(), pos_integer()) :: prefix_result()
Copies only a bounded prefix out of the selected resident source.