X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fref.sgml;h=827ac079f6e3e39f5102540b8a8964bc3d1c2c59;hb=1294c92e581c23d0acd8dae50f9a222d0c2ea369;hp=1058e484bdd2b7016bd12d9bc8c4e01d22313120;hpb=ffa431d2f677263c3bd256da23090248d82b186a;p=uffi.git diff --git a/doc/ref.sgml b/doc/ref.sgml index 1058e48..827ac07 100644 --- a/doc/ref.sgml +++ b/doc/ref.sgml @@ -1050,6 +1050,61 @@ much better with static allocation. + + + size-of-foreign-type + Returns the number of data bytes used by a foreign object type. + + Macro + + + Syntax + + size-of-foreign-type ftype + + + + Arguments and Values + + + ftype + + A foreign type specifier. This parameter is evaluated. + + + + + + + Description + + Returns the number of data bytes used by a foreign object type. This does not include any Lisp storage overhead. + + + + Examples + + +(size-of-foreign-object :unsigned-byte) +=> 1 +(size-of-foreign-object 'my-100-byte-vector-type) +=> 100 + + + + + Side Effects + None. + + Affected by + None. + + + Exceptional Situations + None. + + + pointer-address