Xgit v0.8.0 Xgit.ContentSource protocol View Source

Protocol used for reading object content from various sources.

Link to this section Summary

Types

t()

Any value for which ContentSource protocol is implemented.

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

Any value for which ContentSource protocol is implemented.

Link to this section Functions

Link to this function

length(content)

View Source
length(content :: t()) :: non_neg_integer()

Calculate the length (in bytes) of the content.

Link to this function

stream(content)

View Source
stream(content :: t()) :: Enumerable.t()

Return a stream which can be used for reading the content.