Buffer.getMemoryRange

gst.memory.Memory getMemoryRange(uint idx, int length)

Gets 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.

Parameters

idxan index
lengtha length

Returns

a #GstMemory that contains the merged data of length

blocks starting at idx.