lotus/extern/sector-storage/storiface/ffi.go
2020-09-07 15:48:41 -04:00

18 lines
323 B
Go

package storiface
import (
"errors"
"github.com/filecoin-project/go-state-types/abi"
)
var ErrSectorNotFound = errors.New("sector not found")
type UnpaddedByteIndex uint64
func (i UnpaddedByteIndex) Padded() PaddedByteIndex {
return PaddedByteIndex(abi.UnpaddedPieceSize(i).Padded())
}
type PaddedByteIndex uint64