Skip to content

add support for encoding int64-buffer#22

Open
rochdev wants to merge 1 commit into
darrachequesne:masterfrom
DataDog:int64-buffer-support
Open

add support for encoding int64-buffer#22
rochdev wants to merge 1 commit into
darrachequesne:masterfrom
DataDog:int64-buffer-support

Conversation

@rochdev

@rochdev rochdev commented Oct 19, 2020

Copy link
Copy Markdown

This PR adds support for encoding actual 64bit integers instead of the maximum of 53bit supported natively by JavaScript. It does so by detecting that the value is an int64-buffer object. This is the same library that is used by msgpack-lite to support 64bit integers.

Right now the change is limited to encoding since decoding would require adding int64-buffer as a dependency, which is a change that should likely be discussed, and might have to be added as a configuration option. I also only added support for big endian right now since decoding always uses big endian. This might be configured as well, but it might be enough to support only big endian.

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 this pull request may close these issues.

1 participant