Buffer.replaceMemoryRange

void replaceMemoryRange(uint idx, int length, gst.memory.Memory mem)

Replaces length memory blocks in buffer starting at idx with mem.

If length is -1, all memory starting from idx will be removed and replaced with mem.

buffer should be writable.

Parameters

idxan index
lengtha length, should not be 0
mema #GstMemory