js-ctypes reference

  • Revision slug: Mozilla/js-ctypes/js-ctypes_reference
  • Revision title: js-ctypes reference
  • Revision id: 4040
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment checkpoint save; 64 words added, 8 words removed

Revision Content

{{ gecko_minversion_header() }}

{{ draft() }}

Method overview

Library open(libSpec);

Methods

open()

Opens a library, which may be specified either by pathname or {{ interface("nsILocalFile") }}.

Library open(
  libSpec
);
Parameters
libSpec
The native library to open, specified as either a pathname string or an {{ interface("nsILocalFile") }}.
Return value

A Library object representing the opened library.

See also

Revision Source

<p>{{ gecko_minversion_header() }}</p>
<p>{{ draft() }}</p>
<h2>Method overview</h2>
<table class="standard-table"> <tbody> <tr> <td><code>Library open(libSpec);</code></td> </tr> </tbody>
</table>
<h2>Methods</h2>
<h3 name="eatCookie.28.29">open()</h3>
<p>Opens a library, which may be specified either by pathname or {{ interface("nsILocalFile") }}.</p>
<pre class="eval">Library open(
  libSpec
);
</pre>
<h6 name="Parameters">Parameters</h6>
<dl> <dt><code>libSpec</code></dt> <dd>The native library to open, specified as either a pathname string or an {{ interface("nsILocalFile") }}.</dd>
</dl>
<h6>Return value</h6>
<p>A <code>Library</code> object representing the opened library.</p>
<h2>See also</h2>
<ul> <li><a href="/en/JavaScript_code_modules/ctypes.jsm" title="en/JavaScript code modules/ctypes.jsm">ctypes.jsm</a></li> <li><a href="/en/js-ctypes/Using_js-ctypes" title="en/js-ctypes/Using js-ctypes">Using js-ctypes</a></li>
</ul>
Revert to this revision