ptr == other => true or false Instance Public methods Returns true if other wraps the same pointer, otherwise returns false.
ptr other => -1, 0, 1, or nil Instance Public methods Returns -1 if less than, 0 if equal to, 1 if greater than other. Returns nil if ptr cannot be compared to other.
ref Instance Public methods Returns a new Fiddle::Pointer instance that is a reference pointer for this pointer. Analogous to the ampersand operator in C.
ptr - n => new cptr Instance Public methods Returns a new pointer instance that has been moved back n bytes.
ptr Instance Public methods Returns a new Fiddle::Pointer instance that is a dereferenced pointer for this pointer. Analogous to the star operator in C.
ptr + n => new cptr Instance Public methods Returns a new pointer instance that has been advanced n bytes.
to_ptr(val) => cptr Class Public methods Get the underlying pointer for ruby object val and return it as a Fiddle::Pointer object.
Fiddle::Pointer.new(address) => fiddle_cptrnew(address, size) => fiddle_cptrnew(address, size, freefunc) => fiddle_cptr Class Public methods Create a new pointer to address with an optional size and freefunc. freefunc will be called when the instance is garbage collected.
Fiddle::Pointer.malloc(size, freefunc = nil) => fiddle pointer instance Class Public methods Allocate size bytes of memory and associate it with an optional freefunc that will be called when the pointer is garbage collected. freefunc must be an address pointing to a function or an instance of Fiddle::Function
Fiddle::Pointer[val] => cptrto_ptr(val) => cptr Class Public methods Get the underlying pointer for ruby object val and return it as a Fiddle::Pointer object.
Page 2101 of 2275