Joy Online Manual
NAME |
objc:peek - Read-dereferene a pointer |
SYNOPSIS |
objc:peek ?-trust? address ?type?
DESCRIPTION |
Returns the value stored at the given address. If type is not specified, address's type is used for the conversion. The option -trust tells Joy to automatically register any ids in the data structure pointed to by address, instead of checking if they are already registered. If you use -trust while peeking at garbage data, you will crash your application. |
EXAMPLES |
joy> set p [objc:newPtr double]
double@0xc623c
joy> objc:poke $p [M_PI]
double@0xc623c
joy> objc:peek $p
3.14159265358979312
SEE ALSO |
objc:info
objc:newPtr
objc:poke
objc:typeOfPtr
KEYWORDS |
dereferencing, pointer |
Index |