Core Help Root: Objects: Native Function Reference: Buffer: .replace()


BUFFER $buffer.replace(BUFFER buffer, INT index, INT value)

.replace() is a native method bound to $buffer, which replaces an element pointed to by the index argument. Examples:

;$buffer.replace(`[1,2,3], 2, 5)
=> `[1, 5, 3]
;`[1,2,3].length(2, 7)
=> `[1, 7, 3]


.length() | .replace() | .subrange() | .to_string() | .to_strings() | .from_string() | .from_strings() | .to_veil_pkts() | .from_veil_pkts()


the Cold Dark