-
Notifications
You must be signed in to change notification settings - Fork 6
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
Don't try to grow the buffer more than allowed by the system #75
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #75 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 3 +1
Lines 337 378 +41
Branches 75 84 +9
=========================================
+ Hits 337 378 +41 ☔ View full report in Codecov by Sentry. |
I don't know how to reliably detect what is the maximum size for a typed array. Since Node.js 22, there is no arbitrary limit in V8. @lpatiny Any idea? |
Maybe using on node
and in the browser
Actually this is something very important also in nmr-load-save so if we have a package that is node / browser compatible it would be very usefull. |
I'm not sure the js heap size is relevant. ArrayBuffer data are notably not counted in it. |
And in browsers, the typed array size limit is unrelated to the memory limit. It's arbitrarily chosen by the browser. |
Closes: image-js/fast-png#42