<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGDataConsumerCallbacks/putBytes",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@S@CGDataConsumerCallbacks@FI@putBytes"
  },
  "title" : "putBytes"
}
-->

# putBytes

A pointer to a function that copies data to the data consumer. For more information, see [`CGDataConsumerPutBytesCallback`](/documentation/CoreGraphics/CGDataConsumerPutBytesCallback).

```
var putBytes: CGDataConsumerPutBytesCallback?
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)