Buffer.getMemoryRange

Get length memory blocks in buffer starting at idx. The memory blocks will be merged into one large GstMemory. If length is -1, all memory starting from idx is merged.

class Buffer
getMemoryRange
(
uint idx
,
int length
)

Parameters

idx uint

an index

length int

a length

Return Value

Type: Memory

a GstMemory that contains the merged data of length blocks starting at idx. Use gst_memory_unref() after usage. [transfer full]

Meta