-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Add APIs to BlobBuilder
for customizing the underlying byte array et al.
#115294
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
Open
teo-tsirpanis
wants to merge
27
commits into
dotnet:main
Choose a base branch
from
teo-tsirpanis:srm-buffers
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+621
−456
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
fd2a7e2
Remove dead code.
teo-tsirpanis d1b3914
Add extensibility points for custom blob builders.
teo-tsirpanis 776a69f
Add APIs to `BlobBuilder` for customizing the underlying byte array.
teo-tsirpanis 655ad38
Add tests.
teo-tsirpanis 7e419b0
Support chunking in `WriteBytes(byte, int)` and when writing streams.
teo-tsirpanis 8c078c7
Use framework methods where available.
teo-tsirpanis 0f8c96a
Use framework methods to encode to UTF-8, and support chunking in `Wr…
teo-tsirpanis ff7ea5e
Zero-initialize buffers returned by `BlobBuilder.ReserveBytes`.
teo-tsirpanis 31f3f24
Remove unnecessary pinning.
teo-tsirpanis a9443c6
Simplify chunking logic with an `IBufferWriter`-like pattern.
teo-tsirpanis 07987e4
Fix wrong check order.
teo-tsirpanis 125164d
Use a reasonable default max chunk size.
teo-tsirpanis bc81ac5
Double the size of each new chunk until we get to the max chunk size.
teo-tsirpanis ed979d9
Check that buffer size is not too small.
teo-tsirpanis 515e825
Remove dependency to `Microsoft.Bcl.Memory`.
teo-tsirpanis 5bd0a1d
Ensure `BlobBuilder.WriteUTF8`'s loop makes progress.
teo-tsirpanis 4c5ea72
Fix tests.
teo-tsirpanis c0cb357
Clean-up a test.
teo-tsirpanis 0633ea5
Remove `Microsoft.Bcl.Memory` from the solution.
teo-tsirpanis 2ea1121
Remove unnecessary `unsafe`.
teo-tsirpanis 82bd703
Fix misunderstanding of `Capacity` property.
teo-tsirpanis 2e8f025
Update the downlevel `WriteUtf8` to use unsafe code.
teo-tsirpanis 6fa2fdf
Call `OnLinking` earlier.
teo-tsirpanis 4f7ebd8
Fix tests on .NET Framework.
teo-tsirpanis 9123d14
Fix reference assembly typos.
teo-tsirpanis 558e2e7
Merge branch 'main' into srm-buffers
teo-tsirpanis 197db30
Merge branch 'main' into srm-buffers
teo-tsirpanis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.