Crate easy_ffi_wrapper

source ·
Expand description

Types and utilities to enable writing C FFI wrappers easily.

Features

  • Safely create slices from C slices.
  • Convenience wrapper and builder for C strings.
  • Macro for creating owning data types.
  • Macro for creating iterators from access by index and length.

Macros

  • Generates an owning type BoxedTypeName for a FFI type TypeName.
  • Generates iterator types for FFI containers.
  • Generates iterator types for FFI containers.

Structs

  • Wraps a non-owning FFI string
  • A convenience structure for calling FFI interfaces to get strings

Functions