Skip to content
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

Support ArrayBuffer / SharedArrayBuffer / Uint8Array #3

Open
iongion opened this issue Sep 27, 2019 · 0 comments
Open

Support ArrayBuffer / SharedArrayBuffer / Uint8Array #3

iongion opened this issue Sep 27, 2019 · 0 comments

Comments

@iongion
Copy link

iongion commented Sep 27, 2019

Hi,

I am using bsonify and I have noticed some differences from the https://github.com/mongodb/js-bson which I take as reference implementation.

Code like this works in js-bson

      var image = fs.readFileSync(path.join(root, 'assets/small.png'));
      serialize(image);

But with bsonfy one has to

      var image = fs.readFileSync(path.join(root, 'assets/small.png'));
      serialize(Uint8Array(image.buffer));

What should be the path to support more of these translations just like js-bson does to have 1-1 compatbility ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant