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

BigInt / BigInt64Array / BigUInt64Array #95

Open
kawanet opened this issue Oct 7, 2018 · 2 comments
Open

BigInt / BigInt64Array / BigUInt64Array #95

kawanet opened this issue Oct 7, 2018 · 2 comments

Comments

@kawanet
Copy link
Owner

kawanet commented Oct 7, 2018

Node.js supports BigInt BigInt64Array BigUInt64Array which are proposed at stage 3 at TC39.

$ node -e 'console.log(typeof 1n)'
bigint

$ node -e 'console.log("" + 9007199254740993)'
9007199254740992

$ node -e 'console.log("" + 9007199254740993n)'
9007199254740993

We currently have int64 option to decode msgpack's (u)int64 with int64-buffer object.

var codec = msgpack.createCodec({int64: true});

Features:

  • BigInt decoding with new {bigint: true} option.
  • BigInt encoding per default.
  • extension types for BigInt64Array and BigUInt64Array
@thith
Copy link

thith commented Sep 6, 2019

@kawanet what is the state of bigint support?

@MeirionHughes
Copy link

this is level 4 now.

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

3 participants