(rontolisp) docs
← Functions

ffi:peek

(ffi:peek pointer type &optional offset)

Reads one value of type at pointer plus offset bytes. A :string peek reads the NUL-terminated UTF-8 at the location; a :pointer peek answers a foreign pointer.

The offset is in BYTES, not elements -- an array walk multiplies by (ffi:size type) itself.