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
idx | an index |
length | a length, should not be 0 |
mem | a #GstMemory |