size

size Instance Public methods Get the size of this pointer.

ref

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

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.

null?

null? Instance Public methods Returns true if this is a null pointer.

inspect

inspect Instance Public methods Returns a string formatted with an easily readable representation of the internal state of the pointer.

free=

free=(function) Instance Public methods Set the free function for this pointer to function in the given Fiddle::Function.

free

free => Fiddle::Function Instance Public methods Get the free function for this pointer. Returns a new instance of Fiddle::Function. See Fiddle::Function.new

eql?

ptr.eql?(other) => true or false Instance Public methods Returns true if other wraps the same pointer, otherwise returns false.

[]=

ptr[index] = int â intptr[start, length] = string or cptr or addr â string or dl_cptr or addr Instance Public methods 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.

[] 2

ptr[index] â an_integerptr[start, length] â a_string Instance Public methods Returns integer stored at index. If start and length are given, a string containing the bytes from start of length will be returned.