One Logo Pool Ball
CoreMedia · IOS API REFERENCE

CMSampleDataReference

struct · iOS 26.0+ · SDK 27.1

struct CMSampleDataReference

References sample data in at a URL. The size of the data is provided as ``CMReadySampleBuffer/totalSampleSize``.

Members (5)

get · iOS 26.0+

byteOffset

TypeScript
get byteOffset(): number
Swift declaration
var byteOffset: Int

Offset of the sample data in the container.

set · iOS 26.0+

byteOffset

TypeScript
set byteOffset(value: number)
Swift declaration
var byteOffset: Int

Offset of the sample data in the container.

get · iOS 26.0+

containerLocation

TypeScript
get containerLocation(): string
Swift declaration
var containerLocation: URL

Container of the sample data.

set · iOS 26.0+

containerLocation

TypeScript
set containerLocation(value: string)
Swift declaration
var containerLocation: URL

Container of the sample data.

init · iOS 26.0+

init

TypeScript
static init(containerLocation: string, byteOffset: number): CMSampleDataReference
Swift declaration
init(containerLocation: URL, byteOffset: Int)

Skipped declarations

No declarations were skipped in this snapshot.

All CoreMedia types →