Xgit v0.1.2 Xgit.Core.ContentSource protocol
Protocol used for reading object content from various sources.
Link to this section Summary
Functions
Calculate the length (in bytes) of the content.
Return a stream which can be used for reading the content.
Link to this section Types
Link to this type
t()
t()
t() :: term()
t() :: term()
Any value for which ContentSource
protocol is implemented.
Link to this section Functions
Link to this function
length(content)
length(content)
length(content :: t()) :: non_neg_integer()
length(content :: t()) :: non_neg_integer()
Calculate the length (in bytes) of the content.
Link to this function
stream(content)
stream(content)
stream(content :: t()) :: Enumerable.t()
stream(content :: t()) :: Enumerable.t()
Return a stream which can be used for reading the content.