-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add function to determine the size of final unixfs DAG given raw bytes #58
Comments
is what you want the size of the dag when serialized as a car? (including a carv1 header?) |
CAR sections only, for a given |
|
In my specific usecase, a CAR may contain multiple |
…he car file representing a unixfs file of a given size will take Fix #58
It would be fantastic to have a function that given the size of raw bytes would cheaply and quickly calculate the size of the final
unixfs
DAG. This would be useful in cases where the final DAG will be written out into a fixed sized bucket and the user wants to guarantee that each bucket will have the full raw bytes, e.g., FileCoin pieces of size 32GiB.Other uses of this include pre-allocation of resources or more efficient buffer management depending on the final DAG size for large-scale data intensive applications.
The text was updated successfully, but these errors were encountered: