Insert the memory block mem to buffer at idx. This function takes ownership
of mem and thus doesn't increase its refcount.
Only Buffer.getMaxMemory can be added to a buffer. If more memory is
added, existing memory blocks will automatically be merged to make room for
the new memory.
Insert the memory block mem to buffer at idx. This function takes ownership of mem and thus doesn't increase its refcount.
Only Buffer.getMaxMemory can be added to a buffer. If more memory is added, existing memory blocks will automatically be merged to make room for the new memory.