This is derived work from the
[`current`](https://crates.io/crates/current/0.1.2) crate,
including the following modifications:

- replace `HashMap` with `StaticMap`.
- store `PtrNonNull<u8>` instead of `usize`.
- update code to 2024 edition.
- improve documentation.
