X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=inline;f=doc%2Fref.sgml;h=827ac079f6e3e39f5102540b8a8964bc3d1c2c59;hb=d2cba79718785eaf10ee11d661aca3f4ebb20929;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