Macaulay2 » Documentation
Packages » ForeignFunctions » ForeignType » ForeignPointerType » ForeignPointerType Pointer
next | previous | forward | backward | up | index | toc

ForeignPointerType Pointer -- cast a Macaulay2 pointer to a foreign pointer

Description

To cast a Macaulay2 pointer to a foreign object with a pointer type, give the type followed by the pointer.

i1 : ptr = address int 0

o1 = 0x7f3711bcea20

o1 : Pointer
i2 : voidstar ptr

o2 = 0x7f3711bcea20

o2 : ForeignObject of type void*

Ways to use this method:


The source of this document is in ForeignFunctions.m2:1128:0.