Documentation ¶
Overview ¶
Forked from CARv1 to avoid dependency to ipld-prime 0.9.0 due to outstanding upgrades in filecoin.
Index ¶
Constants ¶
View Source
const DefaultMaxAllowedHeaderSize uint64 = 32 << 20 // 32MiB
View Source
const DefaultMaxAllowedSectionSize uint64 = 8 << 20 // 8MiB
Variables ¶
This section is empty.
Functions ¶
func HeaderSize ¶
Types ¶
type CarHeader ¶
func (CarHeader) Matches ¶
Matches checks whether two headers match. Two headers are considered matching if:
- They have the same version number, and
- They contain the same root CIDs in any order.
Note, this function explicitly ignores the order of roots. If order of roots matter use reflect.DeepEqual instead.
type CarReader ¶
type CarReader struct { Header *CarHeader // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.