Categorygithub.com/filecoin-project/go-padreader
modulepackage
0.0.1
Repository: https://github.com/filecoin-project/go-padreader.git
Documentation: pkg.go.dev

# README

go-padreader

Tools for mapping between bit-padded and not-bit-padded byte streams

License

Dual-licensed under MIT + Apache 2.0

# Functions

New produces a reader that produces the provided reader's bytes with a suffix of NUL bytes.
NewInflator wraps a reader so that it will return enough bytes to exactly fill the given PieceSize.
PaddedSize is an unfortunately-misnamed method: it returns the `unpadded` (payload bearing) size of the smallest piece that could fit the provided `size` payload.