Skip to content
DocsGuidesReferenceBlog
Install
HomeDocsGuidesReferenceBlog
Install Bun v1.4.0
Reference
Modules/bun:ffi/FFITypeStringToType
  • Pbool
  • Pbuffer
  • Pbuffer_bytelength
  • Pbuffer_length
  • Pcallback
  • Pchar
  • Pcstring
  • Pdouble
  • Pf32
  • Pf64
  • Pfloat
  • Pfunction
  • Pi16
  • Pi32
  • Pi64
  • Pi8
  • Pint
  • Pint16_t
  • Pint32_t
  • Pint64_t
  • Pint8_t
  • Pnapi_env
  • Pnapi_value
  • Ppointer
  • Pptr
  • Pu16
  • Pu32
  • Pu64
  • Pu8
  • Puint16_t
  • Puint32_t
  • Puint64_t
  • Puint8_t
  • Pusize
  • Pvoid

Modules

  • Bun
  • bun:bundle
  • bun:ffi
  • bun:jsc
  • bun:sqlite
  • bun:test
  • Globals
  • node:assert
  • node:async_hooks
  • node:buffer
  • node:child_process
  • node:cluster
  • node:crypto
  • node:dgram
  • node:diagnostics_channel
  • node:dns
  • node:dns/promises
  • node:events
  • node:ffi
  • node:fs
  • node:fs/promises
  • node:http
  • node:http2
  • node:https
  • node:inspector
  • node:inspector/promises
  • node:module
  • node:net
  • node:os
  • node:path
  • node:perf_hooks
  • node:punycode
  • node:querystring
  • node:quic
  • node:readline
  • node:readline/promises
  • node:stream
  • node:stream/consumers
  • node:stream/iter
  • node:stream/promises
  • node:stream/web
  • node:string_decoder
  • node:test
  • node:test/reporters
  • node:timers/promises
  • node:tls
  • node:trace_events
  • node:tty
  • node:url
  • node:util
  • node:util/types
  • node:v8
  • node:vm
  • node:wasi
  • node:worker_threads
  • node:zlib
  • node:zlib/iter

interface

ffi.FFITypeStringToType

interface FFITypeStringToType

  • bool: bool
  • buffer: buffer
  • buffer_bytelength: buffer_length
  • buffer_length: buffer_length
  • callback: ptr
  • char: char
  • cstring: cstring
  • double: double
  • f32: float
  • f64: double
  • float: float
  • function: ptr
  • i16: int16_t
  • i32: int32_t
  • i64: int64_t
  • i8: int8_t
  • int: int32_t
  • int16_t: int16_t
  • int32_t: int32_t
  • int64_t: int64_t
  • int8_t: int8_t
  • napi_env: napi_env
  • napi_value: napi_value
  • pointer: ptr
  • ptr: ptr
  • u16: uint16_t
  • u32: uint32_t
  • u64: uint64_t
  • u8: uint8_t
  • uint16_t: uint16_t
  • uint32_t: uint32_t
  • uint64_t: uint64_t
  • uint8_t: uint8_t
  • usize: uint64_t
  • void: void