Skip to content

Use consistent terminology to refer to a section in CAR file #302

@masih

Description

@masih

The term "Section" is used to describe the repeated <varint><cid><block> format that collectively make up the Data portion of a CAR file.

Use terminology consistent with docs in code to avoid confusion.
Example inconsistent terminology, where the term "block" is used to refer to a "Section":

func (b *ReadOnly) readBlock(idx int64) (cid.Cid, []byte, error) {
bcid, data, err := util.ReadNode(internalio.NewOffsetReadSeeker(b.backing, idx), b.opts.ZeroLengthSectionAsEOF)
return bcid, data, err
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions