Overview of dbn-c C FFI bindings
mainThe dbn-c package provides C FFI bindings for the DBN crate. It is designed for high-performance data processing with the following capabilities:
- Decoding: Supports decoding DBN data using a push-based decoder, suitable for streaming or buffered input.
- Encoding: Supports encoding DBN metadata.
- Serialization: Provides CSV and JSON serialization for DBN records.
- Zero-copy Writing: DBN records are their own wire representation. To write a record to a file, you can use standard
fwritedirectly with the record's length.
Note: Compression is not handled by the library; it is the responsibility of the caller.
/* Example: Writing a record directly to a file */
// fwrite(&record, record.length * 4, 1, file);