Next Previous Up Top Contents Index

1.5 Designator classes

pointer-value

Open generic function

Summary

Dereferences a c-typed pointer using its encapsulated raw C address.

Signature

pointer-value C-typed-pointer #key index => object 

Arguments

c-typed-pointer
An instance of <C-statically-typed-pointer>

Values

object
An instance of <object>.

Library

c-ffi

Module

c-ffi

Description

Dereferences c-typed-pointer using its encapsulated raw C address, and returns a Dylan object representing the object at that address. If you supply index, the pointer is treated as a pointer to an array, and the function returns the appropriate element indexed by the correct unit size.

It is an error if C-typed-pointer does not point to a valid address or is a null pointer.

See also

pointer-value-setter, page 24.


C FFI and Win 32 Reference - 31 MAR 2000

Next Previous Up Top Contents Index