-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 TransformationStatus enum from corefxlab #22845
Comments
Regarding naming, I'd prefer the following:
|
In case it wasn't obvious from my comments I added to the type, me too ;) |
I have used this enums in some contexts that were not transformations, e.g. in a routine that copies data from one buffer to another. Because of that, the currently proposed name is BufferOperationStatus, or even OperationStatus. cc: @shiftylogic |
Given the naming feedback:
Should the enum be named BufferOperationResult or OperationResult instead? |
I named it Status because I thought it implies current state of an ongoing operation (multiple calls to the method). Result to me implies more the final state. |
@KrzysztofCwalina I believe we are blocked on some of your |
This is now tracked as part of other work item. |
For reference, here is the enum now: namespace System.Buffers
{
public enum OperationStatus
{
Done,
DestinationTooSmall,
NeedMoreData,
InvalidData,
}
} Are we happy with the field names as is? |
Where is the main API approval issue? I can't find it ... |
@ahsonkhan @KrzysztofCwalina what is the main API issue tracking the proposal now? |
FYI: The API review discussion was recorded - see https://youtu.be/bHwCPVNQLwo?t=99 (4 min duration) |
Based on corefxlab work, will be used by a variety of new corefx Span-based APIs. We need to re-review to make sure it's exactly what we want to bake in to the core of the framework
cc: @terrajobst, @bartonjs, @KrzysztofCwalina, @ahsonkhan
The text was updated successfully, but these errors were encountered: