Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. 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.2 · 3.1 · 3.0