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

[feature request] support for bit64::integer64 #17

Open
dselivanov opened this issue Jun 23, 2018 · 1 comment
Open

[feature request] support for bit64::integer64 #17

dselivanov opened this issue Jun 23, 2018 · 1 comment

Comments

@dselivanov
Copy link

Hi Alex. Would it be possible to add serialization of integer64 from bit64 package?

rjson::toJSON(list(bit64::as.integer64(111)))
#"[5.48412866883784e-322]"

bit64 pkg uses R's double vectors to keep 64 bit integers (so essentially it is numeric vector with class = "integer64" attribute). Underlying memory layout is the same as C/C++ int64_t.

@alexcb
Copy link
Owner

alexcb commented Jun 24, 2018

if you can make it work without introducing bit64 as a hard dependency, feel free to submit a PR.

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

2 participants