Skip to content

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions