Skip to content

Instantly share code, notes, and snippets.

View sotrh's full-sized avatar

Ben Hansen sotrh

View GitHub Profile
@sotrh
sotrh / cdma_with_arrays.rs
Created March 12, 2024 21:48
Experiment of using cdma to encode data from multiple data
#[derive(Debug)]
pub(crate) struct User {
pub(crate) code: [i32; 4],
pub(crate) data: [i32; 2],
}
// 64 bits -> 512 bits
struct Packet {
x: f32,