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

64-bit integers #1

Closed
Climax777 opened this issue Dec 22, 2014 · 1 comment · May be fixed by #5
Closed

64-bit integers #1

Climax777 opened this issue Dec 22, 2014 · 1 comment · May be fixed by #5

Comments

@Climax777
Copy link

Hello providing both the signed and unsigned form of 64-bit integers will make this package more complete.

@villadora
Copy link
Owner

Hi, this lib only provides methods to read data from buffer easily, and all the apis are based on nodejs's Buffer api in here.

What I believe is that packages in npm should do one thing and one thing well. For 64-bit integers, as nodes doesn't support it, so there is no standard which way we should store it, in file or in some protocols on network. Even it get read, there is no long type in js to store in in memory. Converting to double never will be an option.

So I don't think that how to translate 64-bit integer into bytes is the responsibility of this package. I highly suggest the package long in npm. you can write some very simple functions to make this package works well with long. And that's what I'm doing right now.

Thx

antonilol added a commit to antonilol/node-buffer-reader that referenced this issue Jan 11, 2022
antonilol added a commit to antonilol/node-buffer-reader that referenced this issue Jan 11, 2022
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

Successfully merging a pull request may close this issue.

2 participants