lotus/extern/sector-storage/storiface/ffi.go

18 lines
328 B
Go
Raw Normal View History

2020-05-19 16:11:56 +00:00
package storiface
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")
type UnpaddedByteIndex uint64
func (i UnpaddedByteIndex) Padded() PaddedByteIndex {
return PaddedByteIndex(abi.UnpaddedPieceSize(i).Padded())
}
type PaddedByteIndex uint64