11# FFI
22
3- <!-- introduced_in=REPLACEME -->
3+ <!-- introduced_in=v26.1.0 -->
44
55<!-- YAML
6- added: REPLACEME
6+ added: v26.1.0
77-->
88
99> Stability: 1 - Experimental
@@ -140,7 +140,7 @@ const signature = {
140140## ` ffi.suffix `
141141
142142<!-- YAML
143- added: REPLACEME
143+ added: v26.1.0
144144-->
145145
146146* {string}
@@ -162,7 +162,7 @@ const path = `libsqlite3.${suffix}`;
162162## ` ffi.dlopen(path[, definitions]) `
163163
164164<!-- YAML
165- added: REPLACEME
165+ added: v26.1.0
166166-->
167167
168168* ` path ` {string|null} Path to a dynamic library, or ` null ` to resolve symbols
@@ -222,7 +222,7 @@ console.log(functions.add_i32(20, 22));
222222## ` ffi.dlclose(handle) `
223223
224224<!-- YAML
225- added: REPLACEME
225+ added: v26.1.0
226226-->
227227
228228* ` handle ` {DynamicLibrary}
@@ -234,7 +234,7 @@ This is equivalent to calling `handle.close()`.
234234## ` ffi.dlsym(handle, symbol) `
235235
236236<!-- YAML
237- added: REPLACEME
237+ added: v26.1.0
238238-->
239239
240240* ` handle ` {DynamicLibrary}
@@ -248,7 +248,7 @@ This is equivalent to calling `handle.getSymbol(symbol)`.
248248## Class: ` DynamicLibrary `
249249
250250<!-- YAML
251- added: REPLACEME
251+ added: v26.1.0
252252-->
253253
254254Represents a loaded dynamic library.
@@ -328,7 +328,7 @@ closed.
328328### ` library[Symbol.dispose]() `
329329
330330<!-- YAML
331- added: REPLACEME
331+ added: v26.1.0
332332-->
333333
334334Calls ` library.close() ` . This allows ` DynamicLibrary ` instances to be used with
@@ -532,7 +532,7 @@ process.
532532## ` ffi.toString(pointer) `
533533
534534<!-- YAML
535- added: REPLACEME
535+ added: v26.1.0
536536-->
537537
538538* ` pointer ` {bigint}
@@ -557,7 +557,7 @@ const value = toString(ptr);
557557## ` ffi.toBuffer(pointer, length[, copy]) `
558558
559559<!-- YAML
560- added: REPLACEME
560+ added: v26.1.0
561561-->
562562
563563* ` pointer ` {bigint}
@@ -588,7 +588,7 @@ memory or crash the process.
588588## ` ffi.toArrayBuffer(pointer, length[, copy]) `
589589
590590<!-- YAML
591- added: REPLACEME
591+ added: v26.1.0
592592-->
593593
594594* ` pointer ` {bigint}
@@ -612,7 +612,7 @@ entire exposed range.
612612## ` ffi.exportString(string, pointer, length[, encoding]) `
613613
614614<!-- YAML
615- added: REPLACEME
615+ added: v26.1.0
616616-->
617617
618618* ` string ` {string}
@@ -635,7 +635,7 @@ available storage. This function does not allocate memory on its own.
635635## ` ffi.exportBuffer(buffer, pointer, length) `
636636
637637<!-- YAML
638- added: REPLACEME
638+ added: v26.1.0
639639-->
640640
641641* ` buffer ` {Buffer}
@@ -654,7 +654,7 @@ available storage. This function does not allocate memory on its own.
654654## ` ffi.exportArrayBuffer(arrayBuffer, pointer, length) `
655655
656656<!-- YAML
657- added: REPLACEME
657+ added: v26.1.0
658658-->
659659
660660* ` arrayBuffer ` {ArrayBuffer}
@@ -671,7 +671,7 @@ available storage. This function does not allocate memory on its own.
671671## ` ffi.exportArrayBufferView(arrayBufferView, pointer, length) `
672672
673673<!-- YAML
674- added: REPLACEME
674+ added: v26.1.0
675675-->
676676
677677* ` arrayBufferView ` {ArrayBufferView}
@@ -688,7 +688,7 @@ available storage. This function does not allocate memory on its own.
688688## ` ffi.getRawPointer(source) `
689689
690690<!-- YAML
691- added: REPLACEME
691+ added: v26.1.0
692692-->
693693
694694* ` source ` {Buffer|ArrayBuffer|ArrayBufferView}
0 commit comments