# Pwn Ffi Fftw

> Drive PWN::FFI::FFTW from pwn_eval.

- Skill: `0dayinc/pwn-ffi-fftw` (Agent Skill)
- Install (CLI): `npx get-skill add 0dayinc/pwn-ffi-fftw`
- Raw SKILL.md: https://api.skillmd.com/api/skills/0dayinc/pwn-ffi-fftw/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: 0dayInc (https://skillmd.com/u/0dayinc)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/0dayinc/pwn-ffi-fftw

---


# PWN::FFI::FFTW

Thin single-precision FFTW3 binding (`libfftw3f`). Used by PWN::SDR::* spectrum work (GQRX FFT snapshots, wideband energy detectors) when MHz-rate FFTs outgrow pure-Ruby DFT. Missing library degrades cleanly via `.available?` — callers keep pure-Ruby fallbacks. No compile step at gem install; no shells. Plans are built with FFTW_ESTIMATE so first-call latency stays acceptable for REPL use.

## When to use

Call `PWN::FFI::FFTW` from `pwn_eval` when the task needs this module.
Do not reimplement it in shell.

## Methodologies

Generated from `pwn/ffi/fftw.rb`. Prefer the public class methods below.
Class methods take `(opts = {})` and read `opts`.

## How to call

```ruby
PWN::FFI::FFTW.help
PWN::FFI::FFTW.available(opts)
```

## Public methods

- `available`
- `rfft`
- `rfft_magnitude`
- `rfft_power_db`
- `cfft`
- `authors`
- `help`
- `available?`
- `fftwf_cleanup`
- `fftwf_destroy_plan`
- `fftwf_execute`
- `fftwf_free`
- `fftwf_malloc`
- `fftwf_plan_dft_1d`
- `fftwf_plan_dft_c2r_1d`
- `fftwf_plan_dft_r2c_1d`
- `load_error`

## Source

`pwn/ffi/fftw.rb`

## Verification

`PWN::FFI::FFTW.respond_to?(:available)` after the
module is loaded. Read the source for parameter names.

