-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add notes for System.Binary #44
Conversation
2017/10-03-System.Binary/README.md
Outdated
- Already contains the existing V1 `ArrayPool` | ||
|
||
(1) has to be in-box | ||
(2) doesn't have to be, but might due to `ArrayPool`. In fact, on .NET Core we |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
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.
Otherwise, LGTM.
* Extension methods | ||
- If we want to expose them as extension methods we need to have both | ||
overloads for `ReadOnlySpan<T>` and `Span<T>` | ||
- Let's do non-extension methods for now; we can make them extension methods |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
1385c89
to
99f2a9d
Compare
2017/10-03-System.Binary/README.md
Outdated
overloads for `ReadOnlySpan<T>` and `Span<T>` | ||
- Let's do non-extension methods for now; we can make them extension methods | ||
later. | ||
+ But let's leave the type name to be `BufferPrimitives` (as opposed to |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
99f2a9d
to
6ef6b5d
Compare
2017/10-03-System.Binary/README.md
Outdated
- Formatting & parsing | ||
* `System.Buffers.Binary` | ||
- The type discussed here | ||
- `BinaryExtensions` |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
2017/10-03-System.Binary/README.md
Outdated
- Should `Read<T>` return a `ref T`? | ||
+ No, because that wouldn't guarantee any alignment. Returning a `T` | ||
guarantees that it's aligned because we always align the stack | ||
- Should `Write<T>` take a `ref T`? |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
6ef6b5d
to
45350ea
Compare
45350ea
to
b1bac55
Compare
1. `System.Memory` | ||
- OOB `Span<T>` | ||
- Later type forwarded to the core library where span is in-box | ||
2. `System.Buffers` |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@KrzysztofCwalina @stephentoub @karelz @ahsonkhan
@dotnet/fxdc