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 int64 and uint64 #2

Open
baalexander opened this issue Oct 21, 2011 · 0 comments
Open

Support int64 and uint64 #2

baalexander opened this issue Oct 21, 2011 · 0 comments

Comments

@baalexander
Copy link
Owner

JavaScript does not support 64-bit signed and unsigned integers natively. There's two options to support them:

  1. Use a datastore for precision storing of the 64-bit integers. This could be the default array returned by ctype's r/wsint64 and r/wuint64 functions or something like node-int64.
  2. Coerce the value into the JavaScript number (a double precision float).

This will be used in messages and reading/writing to buffers.

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