Buffer.replaceMemoryRange

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.

class Buffer
void
replaceMemoryRange
(
uint idx
,
int length
,)

Parameters

idx uint

an index

length int

a length should not be 0

mem Memory