PeterO.Cbor 4.0.0-beta2

A C# implementation of Concise Binary Object Representation (CBOR), a general-purpose binary data format defined in RFC 7049.

This is a prerelease version of PeterO.Cbor.
There is a newer version of this package available.
See the version list below for details.
Install-Package PeterO.Cbor -Version 4.0.0-beta2
dotnet add package PeterO.Cbor --version 4.0.0-beta2
<PackageReference Include="PeterO.Cbor" Version="4.0.0-beta2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PeterO.Cbor --version 4.0.0-beta2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Version 4.0.0-beta2:

The features in this version include:

- The CBOR library no longer stores numbers in a special form beyond the CBOR data model, which represents all "65-bit" signed integers and all "double" values.  This means the CBOR library no longer stores certain numbers as EDecimal, EInteger, EFloat, etc., rather than as tagged CBOR objects.
- CBORObject.CompareTo now compares objects using the default deterministic encoding comparison in the draft revision of the CBOR specification, and no longer treats numbers (objects with the former type CBORType.Number) as a special class.
- CBORType.Number is deprecated; CBORObjects no longer have this type.  In its place, certain numbers now have new CBORTypes Integer or FloatingPoint.
- CBORObject now stores floating-point numbers internally as the bits that make them up, rather than as `double`s, to avoid data loss in conversions.
- Methods were added to CBORObject to read and write floating-point numbers in terms of their bit patterns rather than as `double`s or `float`s.
- Ctap2Canonical was made more strict and now works when decoding CBOR objects.
- Added ReadSequence and DecodeSequence to CBORObject for reading CBOR sequences.
- New CBORNumber class for storing numbers representable in CBOR.  The new CBORObject.IsNumber property checks whether a CBOR object represents a number.
- Bug fixes

Showing the top 1 GitHub repositories that depend on PeterO.Cbor:

Repository Stars
Directory Services Internals (DSInternals) PowerShell Module and Framework

Version History

Version Downloads Last updated
4.0.1 2,798 10/2/2019
4.0.0 1,588 9/3/2019
4.0.0-beta2 63 8/24/2019
4.0.0-beta1 109 7/7/2019
4.0.0-alpha2 1,150 1/3/2019
4.0.0-alpha1 1,634 10/2/2018
3.6.0 466 8/9/2019
3.5.2 2,239 7/4/2019
3.5.1 111 7/1/2019
3.5.0 337 6/2/2019
3.4.0 28,640 10/24/2018
3.4.0-beta1 152 10/1/2018
3.3.0 2,420 9/3/2018
3.2.1 11,054 7/31/2018
3.2.0 199 7/30/2018
3.1.0 19,857 6/21/2018
3.0.3 44,170 10/30/2017
3.0.2 679 9/9/2017
3.0.1 298 9/8/2017
3.0.0 1,307 8/12/2017