Documentation ¶
Index ¶
Constants ¶
View Source
const CommPBuf = abi.UnpaddedPieceSize(commPBufPad - (commPBufPad / 128))
CommPBuf is the size of the buffer used to calculate commP
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommpWriter ¶
type CommpWriter struct {
// contains filtered or unexported fields
}
CommpWriter is a writer that calculates the CommP
func (*CommpWriter) Sum ¶
func (w *CommpWriter) Sum() (DataCIDSize, error)
type DataCIDSize ¶
type DataCIDSize struct { PayloadSize int64 PieceSize abi.PaddedPieceSize PieceCID cid.Cid }
DataCIDSize is the result of a DataCID calculation
Click to show internal directories.
Click to hide internal directories.