This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 344
Combining the T[] and OwnedBuffer<T> fields of Buffer<T> into a single object #1634
Merged
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
89b3f45
Changing Buffer<T> fields to void* and object
ahsonkhan 16182d4
Fixing Buffer Span and Retain to account for object being null
ahsonkhan 97e7263
WIP - fixing impl of retain
ahsonkhan b70cf9a
Using last bit of index to differentiate between array & ownedbuffer
ahsonkhan 690c089
Merge branch 'master' of https://github.com/dotnet/corefxlab into Buf…
ahsonkhan a29cfa8
Fixing use of index by using bitmask to ignore first bit
ahsonkhan 26b8bc6
Removing unnecessary unsafe keyword since buffer no longer contains v…
ahsonkhan 5261df6
Adding owned buffer test, use after gc collection
ahsonkhan b1af4fe
Aggressive inlining span property
ahsonkhan 3a794e4
Addressing PR comment
ahsonkhan c379c93
Tweaking test and comment
ahsonkhan 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
Removing unnecessary unsafe keyword since buffer no longer contains v…
…oid*
- Loading branch information
commit 26b8bc6b1095da17c953774218e5d4c418327fb3
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to add a comment that explains how this works, i.e. that _index high order bit is used to identify the modes.