The Rust definition was previously performing a 4-byte write when the C API was declared as taking an 1-byte buffer.
For more information you can find the documentation for this library online.