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

Add support for Typed Arrays for issue #13 #14

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

glenne
Copy link
Contributor

@glenne glenne commented Jul 24, 2021

RFC8746 CBOR tags for Typed Arrays defines tags for encoding typed arrays such as Float32Array and Int16Array. By using the tags, applications can round-trip these arrays without using blobs so they retain the self-defining nature of CBOR.

This pull request adds round-trip support for Uint8Array, Int8Array, Uint16Array, Int16Array, Uint32Array, Int32Array, Float32Array and Float64Array.

@sonarcloud
Copy link

sonarcloud bot commented Jul 24, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Owner

@aaronhuggins aaronhuggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great PR, thanks @glenne!

There are some quibbles I have with style choices you made, but I plan on doing a migration to support Deno this month in this project. So what I'll do is merge this PR as-is when I'm working on the migration and then adjust it.

I'll make sure to add your name as contributor to the README so you get full credit for your work!

@aaronhuggins aaronhuggins linked an issue Apr 5, 2022 that may be closed by this pull request
Copy link
Owner

@aaronhuggins aaronhuggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving changes for #13 and #17.

@aaronhuggins aaronhuggins merged commit 46f1131 into aaronhuggins:master Apr 5, 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 this pull request may close these issues.

Add CBOR Support for Typed Arrays
2 participants