---
title: chunkDetails()
framework: MediaExtension
role: symbol
role_heading: Instance Method
platforms: [macOS 14.0+]
path: mediaextension/mesamplecursor/chunkdetails()
---

# chunkDetails()

Returns information about the chunk that holds the sample indicated by the cursor.

## Declaration

```swift
optional func chunkDetails() throws -> MESampleCursorChunk
```

## Return Value

Return Value A sample cursor chunk.

## Discussion

Discussion If the sample resides in a contiguous chunk of the file among similar samples, this method returns information about that chunk. note: If a cursor implements this method, it also needs to implement sampleLocation() to get samples inside the chunk’s location. It may not be practical to use this method with some media assets. In this case, or if the cursor doesn’t support this method, it returns MEError.Code.locationNotAvailable, which indicates to use loadSampleBufferContainingSamples(to:completionHandler:) to load the sample data instead.

## See Also

### Sending samples to a pipeline

- [sampleLocation()](mediaextension/mesamplecursor/samplelocation().md)
- [loadSampleBufferContainingSamples(to:completionHandler:)](mediaextension/mesamplecursor/loadsamplebuffercontainingsamples(to:completionhandler:).md)
