Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Fiddle::Pointer#[]=

ptr[index] = int → int
ptr[start, length] = string or cptr or addr → string or dl_cptr or addr

Set the value at index to int.

Or, set the memory at start until length with the contents of string, the memory from dl_cptr, or the memory pointed at by the memory address addr.

See also .[] #[] #call_free #== also in 3.4 · 3.3 · 3.2 · 3.1