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

@DHowett-MSFT

Description

@DHowett-MSFT
  • 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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions