Skip to content

Conversation

@eiriktsarpalis
Copy link
Member

@eiriktsarpalis eiriktsarpalis commented Apr 9, 2020

Contributes to #32046 and #32047.

  • Implement PeekTag() method.
  • Implement DateTime type support.
  • Implement BigInteger support.
  • Implement decimal support.

Addendum:

  • Add WriteInt32()/ReadInt32() convenience methods.
  • Add pervasive buffer postcondition checks on negative reader tests and fix relevant bugs.
  • Rename "Special" major type to "Simple".

@ghost
Copy link

ghost commented Apr 9, 2020

Tagging @bartonjs as an area owner

@eiriktsarpalis eiriktsarpalis marked this pull request as draft April 9, 2020 15:30
@eiriktsarpalis eiriktsarpalis marked this pull request as ready for review April 15, 2020 16:45
@eiriktsarpalis
Copy link
Member Author

@bartonjs PR is now ready for review. There are still a few design issues to be considered, in the unresolved conversations above.

Copy link
Member Author

Choose a reason for hiding this comment

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

@tannergooding you might be interested in reviewing this.

bartonjs
bartonjs previously approved these changes Apr 20, 2020
Copy link
Member

@bartonjs bartonjs left a comment

Choose a reason for hiding this comment

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

Next up: A more comprehensive test that reads and writes COSE public keys (https://tools.ietf.org/html/rfc8152#appendix-C.7.1 has some EC examples; but examples that use the RSA extensions from https://tools.ietf.org/html/rfc8230 are also/likely-more valueable).

To consider:

  • The addition of the Int32 accelerators has made for some mild asymmetry. Consider adding UInt32 accelerators as well, for symmetry.

@bartonjs bartonjs dismissed their stale review April 20, 2020 18:06

New methods are missing negative tests

@eiriktsarpalis eiriktsarpalis merged commit 61a8cb1 into dotnet:master Apr 21, 2020
@eiriktsarpalis eiriktsarpalis deleted the feature/cbor branch April 21, 2020 09:08
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants