One Logo Pool Ball
CoreMedia · IOS API REFERENCE

CMBlockBuffer.Slice

struct · iOS 13.0+ · SDK 27.1

struct Slice

A slice of a `CMBlockBuffer` instance. - Important: Long-term storage of `CMBlockBuffer.Slice` instances is discouraged. A slice holds a reference to the entire storage of a larger block buffer, not just to the portion it presents, even after the original buffer's lifetime ends. Long-term storage of a slice may therefore prolong the lifetime of bytes that are no longer otherwise accessible, which can appear to be memory and object leakage.

Members (3)

get · iOS 13.0+

startIndex

TypeScript
get startIndex(): number
Swift declaration
var startIndex: Int { get }

The position of the first element.

get · iOS 13.0+

owner

TypeScript
get owner(): CMBlockBuffer
Swift declaration
var owner: CMBlockBuffer { get }

`CMBlockBuffer` instance to operate on.

get · iOS 13.0+

endIndex

TypeScript
get endIndex(): number
Swift declaration
var endIndex: Int { get }

The "past the end" position.

Skipped declarations

No declarations were skipped in this snapshot.

All CoreMedia types →