---
title: CGDataProviderSkipForwardCallback
framework: coregraphics
role: symbol
role_heading: Type Alias
path: coregraphics/cgdataproviderskipforwardcallback
---

# CGDataProviderSkipForwardCallback

A callback function that advances the current position in the data stream supplied by the provider.

## Declaration

```swift
typealias CGDataProviderSkipForwardCallback = (UnsafeMutableRawPointer?, off_t) -> off_t
```

## Parameters

- `info`: A generic pointer to private data shared among your callback functions. This is the same pointer you supplied to doc://com.apple.coregraphics/documentation/CoreGraphics/CGDataProviderSequentialCallbacks/init(version:getBytes:skipForward:rewind:releaseInfo:).
- `count`: The number of bytes to skip.

## Return Value

Return Value The number of bytes that were actually skipped.

## Discussion

Discussion When Core Graphics needs to advance forward in the provider’s data stream, your function is called.

## See Also

### Creating Sequential-Access Data Providers

- [init(sequentialInfo:callbacks:)](coregraphics/cgdataprovider/init(sequentialinfo:callbacks:).md)
- [CGDataProviderSequentialCallbacks](coregraphics/cgdataprovidersequentialcallbacks.md)
- [CGDataProviderRewindCallback](coregraphics/cgdataproviderrewindcallback.md)
- [CGDataProviderGetBytesCallback](coregraphics/cgdataprovidergetbytescallback.md)
- [CGDataProviderReleaseInfoCallback](coregraphics/cgdataproviderreleaseinfocallback.md)
