RustySBE - High-performance Simple Binary Encoding (SBE) for Rust
This crate provides zero-copy, high-performance SBE encoding and decoding capabilities optimized for financial trading systems and other low-latency applications.
Features
- Zero-copy decoding - Read directly from network buffers
- SIMD-aligned buffers - Optimized memory access patterns
- Type-safe message handling - Compile-time message validation
- Group iteration - Efficient handling of repeating groups
- Variable-length data - Support for varchar fields
- High performance - Minimal allocations and overhead
Example
use ;
// Encode a message
let mut encoder = new;
encoder.write_u64?;
encoder.write_string?;
let message = encoder.finalize?;
// Decode the message
let decoder = new?;
let value = decoder.read_u64?;
let symbol = decoder.read_string?;