2020-05-19 16:11:56 +00:00
|
|
|
package storiface
|
|
|
|
|
2020-05-28 23:33:00 +00:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
|
|
|
"github.com/filecoin-project/specs-actors/actors/abi"
|
|
|
|
)
|
2020-05-19 16:11:56 +00:00
|
|
|
|
|
|
|
var ErrSectorNotFound = errors.New("sector not found")
|
2020-05-26 08:25:17 +00:00
|
|
|
|
|
|
|
type UnpaddedByteIndex uint64
|
2020-05-28 23:33:00 +00:00
|
|
|
|
|
|
|
func (i UnpaddedByteIndex) Padded() PaddedByteIndex {
|
|
|
|
return PaddedByteIndex(abi.UnpaddedPieceSize(i).Padded())
|
|
|
|
}
|
|
|
|
|
|
|
|
type PaddedByteIndex uint64
|