Skip to content

[VTDecompressionStatus] Enable nullability + numerous other code updates - #13051

Merged
rolfbjarne merged 1 commit into
dotnet:mainfrom
rolfbjarne:nativeobject-vtdecompressionsession
Oct 20, 2021
Merged

[VTDecompressionStatus] Enable nullability + numerous other code updates#13051
rolfbjarne merged 1 commit into
dotnet:mainfrom
rolfbjarne:nativeobject-vtdecompressionsession

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member
  • Enable nullability and fix code accordingly.
  • Use 'is' and 'is not' instead of '==' and '!=' for object identity.
  • Use the null-safe NativeObjectExtensions.GetHandle extension method to get
    the handle instead of checking for null (avoids some code duplication).
  • Use 'nameof (parameter)' instead of string constants.
  • Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
    Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
    throwing ObjectDisposedException.
  • Simplify block code to not need to be unsafe.
  • Fix extraneous call to CFObject.CFRelease in the CopyBlackPixelBuffer method.

* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
  Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
  throwing ObjectDisposedException.
* Simplify block code to not need to be unsafe.
* Fix extraneous call to CFObject.CFRelease in the CopyBlackPixelBuffer method.
@rolfbjarne
rolfbjarne requested a review from dalexsoto as a code owner October 20, 2021 13:41
@rolfbjarne rolfbjarne added the not-notes-worthy Ignore for release notes label Oct 20, 2021
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [PR Build] Tests passed on Build. ✅

Tests passed on Build.

API diff

✅ API Diff from stable

View API diff

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

🎉 All 99 tests passed 🎉

Pipeline on Agent XAMBOT-1104.BigSur'
Merge 31456bd into b9a2710

@rolfbjarne
rolfbjarne merged commit fa51d14 into dotnet:main Oct 20, 2021
@rolfbjarne
rolfbjarne deleted the nativeobject-vtdecompressionsession branch October 20, 2021 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

not-notes-worthy Ignore for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants