-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CBOR] Implement indefinite length writer and reader support (#33831)
* Implement indefinite length writes * add indefinite-length cbor reader support * Use CborReaderState.FormatError in Peek() instead of throwing exceptions. * use verbose naming for indefinite-length write methods * address feedback * implement concatenation logic for indefinite-length string readers * add tests for nested indefinite-length strings * fix naming issues * check that TryReadString() methods are idempotent on failed reads. * use string.Create instead of char buffer; share single range list allocation * only clear List if it is guaranteed to be reused * move field to top of main CborReader source file.
- Loading branch information
1 parent
dcfce2e
commit 5c8cad2
Showing
20 changed files
with
1,262 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.