-
Notifications
You must be signed in to change notification settings - Fork 8k
Remove 'out' in ReadConsole pinvoke #9066
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
Remove 'out' in ReadConsole pinvoke #9066
Conversation
Look goo to me. No change is needed as per @jazzdelightsme pointed out below. |
@daxian-dbw : No! (and I verified this by looking at type information in a debugger; I am very sure) |
@jazzdelightsme Thanks for catching that! Can you please explain a bit more about the difference between |
Ha, I might find it -- https://stackoverflow.com/a/6420546/7129704
|
@daxian-dbw I see in https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/interop-pinvokes.md#strings that StringBuilder marshalling always re-allocate/re-copy buffers. Make sense review our code to reduce such allocations? Although at first glance I did not see how we could do it. And the PR fix could be in 6.2. |
Thanks @iSazonov. By reading that guideline, it seems |
Tracking issue #9139
Please review my old PR first - it is related :-) |
@iSazonov We are using |
PR Summary
Revert change based on the comment #8847 (comment)
PR Context
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.[feature]
to your commit messages if the change is significant or affects feature tests