Macaulay2 » Documentation
Packages » ForeignFunctions :: size(ForeignType)
next | previous | forward | backward | up | index | toc

size(ForeignType) -- size of a foreign type

Synopsis

Description

Return the number of bytes needed by the given foreign type, just like the sizeof operator in C.

i1 : size char'

o1 = 1
i2 : size voidstar

o2 = 8

Ways to use this method: