Array Buffers
See original GitHub issueIf I try to put array buffer into a db that has valueEncoding set to ‘binary’ I get an error about
message: "value cannot be an empty ArrayBuffer"
name: "WriteError"
as far as I can tell this is due to it being improperly turned into a Uint8 at some point, I managed to trace it to here where the array Buffer failed the Buffer.isBuffer test, but then when new Buffer(ArrayBuffer) is called it uses ArrayBuffer.prototype.length instead of ArrayBuffer.prototype.byteLength, so I’ll likely have to open an issue there as well
Issue Analytics
- State:
- Created 9 years ago
- Comments:13 (10 by maintainers)
Top Results From Across the Web
ArrayBuffer - JavaScript - MDN Web Docs
Chrome Edge
ArrayBuffer Full support. Chrome7. Toggle history Full support. Edge12. Tog...
@@species Full support. Chrome51. Toggle history Full support. Edge13. Tog...
ArrayBuffer() constructor Full support....
Read more >javascript ArrayBuffer, what's it for?
Basically ArrayBuffer is used to keep binary data. It can be the binary data of an image for example. In other languages buffers...
Read more >ArrayBuffer, binary arrays
The basic binary object is ArrayBuffer – a reference to a fixed-length contiguous memory area. We create it like this: let buffer = ......
Read more >JavaScript ArrayBuffer Object
The Javascript ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer. The contents of an ArrayBuffer cannot ...
Read more >Shared Array Buffer | Can I use... Support tables for HTML5 ...
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Btw, my comment was from 2014! I think Node.js is moving towards supporting
Uint8Array
andArrayBuffer
in addition toBuffer
for built-in modules likefs
, etc. Just FYI@vweevers We can take @feross comment and add to
UPGRADING.md
as well.