The Long class from
https://github.com/mongodb/js-bson/blob/master/lib/bson/long.js
might be helpful as well it's from the google closure lib
On Apr 18, 9:26 pm, Chad Retz <
chad.r...@gmail.com> wrote:
> I had the same problem with a binary protocol. I just gave the data back as
> a big numeric string and suggested he use node-bigint[1] or
> bigdecimal.js[2] to do more with it. Both of those support arithmetic
> operations.
>
> [1] -
https://github.com/substack/node-bigint
> [2] -
https://github.com/iriscouch/bigdecimal.js
>
>
>
>
>
>
>
> On Wednesday, April 18, 2012 11:31:23 AM UTC-5, Tony Huang wrote:
>
> > Hi all,
>
> > I've implemented a binary based protocol in node.js, and I need a Int64 to
> > present the id of the messages.
>
> > What library should I use to represent unsigned integers as well as
> > UInt64s?
>
> > I've taken a look at the node-int64 module, but it doesn't support any
> > calculation which is necessary in my case to decode a compressed int64.
>
> > Thank you.
>
> > Best regards.
>
> > --
> > ------------------------------------------------------
> > Tony Huang
cnwz...@gmail.com
> >
wz...@hotmail.com
> >
wz...@vip.sina.com