<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>size-of-foreign-type</title><link rel="stylesheet" type="text/css" href="ecl.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><link rel="home" href="index.html" title="The ECL manual"><link rel="up" href="rn03.html" title="Objects"><link rel="prev" href="rn03re58.html" title="with-foreign-object"><link rel="next" href="rn03re60.html" title="pointer-address"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><code class="function">size-of-foreign-type</code></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="rn03re58.html">Prev</a> </td><th width="60%" align="center">Objects</th><td width="20%" align="right"> <a accesskey="n" href="rn03re60.html">Next</a></td></tr></table><hr></div><div class="refentry" title="size-of-foreign-type"><a name="uffi.size-of-foreign-type"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p><code class="function">size-of-foreign-type</code> — Returns the number of data bytes used by a foreign object type. </p></div><div class="refsynopsisdiv" title="Macro"><h2>Macro</h2><div class="funcsynopsis"><p><code class="funcdef">(size-of-foreign-type</code> <var class="pdparam">ftype</var>)</p></div><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>ftype</code></em></span></p></td><td><p>A foreign type specifier. This parameter is evaluated.</p></td></tr></tbody></table></div></div><div class="refsect1" title="Description"><a name="id3007916"></a><h2>Description</h2><p> Returns the number of data bytes used by a foreign object type. This does not include any Lisp storage overhead.</p></div><div class="refsect1" title="Examples"><a name="id3007928"></a><h2>Examples</h2><p> </p><pre class="screen"> (size-of-foreign-object :unsigned-byte) => 1 (size-of-foreign-object 'my-100-byte-vector-type) => 100</pre></div><div class="refsect1" title="Side Effects"><a name="id3007945"></a><h2>Side Effects</h2><p>None.</p></div><div class="refsect1" title="Affected by"><a name="id3007956"></a><h2>Affected by</h2><p>None.</p></div><div class="refsect1" title="Exceptional Situations"><a name="id3007966"></a><h2>Exceptional Situations</h2><p>None.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="rn03re58.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="rn03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="rn03re60.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><code class="function">with-foreign-object</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <code class="function">pointer-address</code></td></tr></table></div></body></html>