generated from ipfs/ipfs-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement utility to extract CARv1 from a CARv2
Implement `ExtractV1File` where the function takes path to a CARv2 file and efficiently extracts its inner CARv1 payload. Note, the implementation only supports CARv2 as input and returns a dedicated error if the supplied input is already in CARv1 format. Implement benchmarks comparing extraction using `Reader` vs `ExtractV1File`. Implement tests that assert in-place extraction as well as invalid input and both v1/v2 input Fixes #207 This commit was moved from ipld/go-car@8113794
- Loading branch information
Showing
3 changed files
with
249 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters