This type can assume the value of a generic C pointer (that is, a pointer of unspecified type).
TYPE ORA_FFI.POINTERTYPE;
/* This example uses ORA_FFI.POINTERTYPE */
PACKAGE imglib IS
/* Declare Function get_image which
returns a generic C pointer. */
FUNCTION get_image(ikey IN OUT VARCHAR2)
RETURN ORA_FFI.POINTERTYPE ;
/* Declare Procedure show_image with parameter
idata which is a generic C pointer.*/
PROCEDURE show_image(idata ORA_FFI.POINTERTYPE,
iscale NUMBER);
END;
...
PROCEDURE display_image(keywrd IN OUT VARCHAR2) IS
/* Declare img_ptr as a generic C pointer type */
img_ptr ORA_FFI.POINTERTYPE;
BEGIN
img_ptr := IMGLIB.GET_IMAGE(keywrd);
IMGLIB.SHOW_IMAGE(img_ptr,2);
END;
About the ORA_FFI built-in package
Copyright © 1984, 2005, Oracle. All rights reserved.