Documentation ¶
Index ¶
- Constants
- func BuildFileNode(ctx context.Context, item Finfo, bufDs ipld.DAGService, cidBuilder cid.Builder) (node ipld.Node, err error)
- func CalculateCommpHashHash(reader io.Reader, PadPieceSize uint64) (commCid cid.Cid, pieceSize uint64, err error)
- type CarHeader
- type CidMapValue
- type FSBuilder
- type Finfo
- type FsNode
Constants ¶
View Source
const BufSize = (4 << 20) / 128 * 127
View Source
const UnixfsChunkSize uint64 = 1 << 20
View Source
const UnixfsLinksPerLevel = 1 << 10
Variables ¶
This section is empty.
Functions ¶
func BuildFileNode ¶
Types ¶
type CidMapValue ¶ added in v1.3.0
type FSBuilder ¶
type FSBuilder struct {
// contains filtered or unexported fields
}
func NewFSBuilder ¶
func NewFSBuilder(root *dag.ProtoNode, ds ipld.DAGService) *FSBuilder
Click to show internal directories.
Click to hide internal directories.