Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This repository was archived by the owner on May 28, 2025. It is now read-only.

CGDataProvider is, but should not be, an NS/CFData. #1450

Closed

Description

  • CGDataProviderCopyData returns another CGDataProvider masquerading as a CFData.
  • CGDataProvider is an Objective-C class in an otherwise C framework.
  • CGDataProvider confounds the debugger, which knows it is an NSData (but not really, so it shows 0 bytes)
  • CGDataProvider cannot hash like a normal NSCFData, making it useless for operations requiring hashing.
  • CGDataProvider does not support streams.
  • CGDataProvider doesn't have a CFTypeID since it's not a CFType.

Activity

  1. DHowett-MSFT commented on Nov 29, 2016

    @DHowett-MSFT
    Author

    Adding TODO in the merge from develop into CGD2D; UIPasteboard.mm:397.
    No SHA1 to reference right now.

  2. added a commit that references this issue on Dec 21, 2016
    d62e5e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions