Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New produces a reader that produces the provided reader's bytes with a suffix of NUL bytes.
func NewInflator ¶
func NewInflator(r io.Reader, readerTotalSize uint64, targetSize abi.UnpaddedPieceSize) (io.Reader, error)
NewInflator wraps a reader so that it will return enough bytes to exactly fill the given PieceSize
func PaddedSize ¶
func PaddedSize(size uint64) abi.UnpaddedPieceSize
PaddedSize is an unfortunately-misnamed method: it returns the `unpadded` (payload bearing) size of the smallest piece that could fit the provided `size` payload.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.