Dlfcn.CachePointer(IntPtr, String, IntPtr*) Method

Definition

Looks up the specified constant symbol in the specified library, and stores it in the specified storage (unless the storage already contains a value, in which case that value is returned)

public static IntPtr CachePointer (IntPtr handle, string constant, IntPtr* storage);
static member CachePointer : nativeint * string * nativeptr<nativeint> -> nativeint

Parameters

handle
IntPtr

nativeint

The handle for the library to search.

constant
String

The symbol to find.

storage

IntPtr*

nativeint*

A pointer to a storage location for the resulting pointer.

Returns

IntPtr

nativeint

A pointer to the constant symbol in the specified library.

Applies to