<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGDataProvider/init(sequentialInfo:callbacks:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Graphics",
      "CoreGraphics"
    ],
    "preciseIdentifier" : "c:@F@CGDataProviderCreateSequential"
  },
  "title" : "init(sequentialInfo:callbacks:)"
}
-->

# init(sequentialInfo:callbacks:)

Creates a sequential-access data provider.

```
init?(sequentialInfo info: UnsafeMutableRawPointer?, callbacks: UnsafePointer<CGDataProviderSequentialCallbacks>)
```

## Parameters

`info`

A pointer to data of any type or `NULL`. When Core Graphics calls the functions specified in the `callbacks` parameter, it sends each of the functions this pointer.

`callbacks`

A pointer to a [`CGDataProviderSequentialCallbacks`](/documentation/CoreGraphics/CGDataProviderSequentialCallbacks) structure that specifies the callback functions you implement to handle the data provider’s basic memory management.

## Return Value

A new data provider. In Objective-C, you’re responsible for releasing this object using [`CGDataProviderRelease`](/documentation/CoreGraphics/CGDataProviderRelease).

## Discussion

You use this function to create a sequential-access data provider that uses callback functions to read data from your program in a single block.

---

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)