add uniffi CharGrid

This commit is contained in:
Vinzenz Schroeter 2024-11-10 15:08:39 +01:00
parent 9553d9fe42
commit d0d70c079e
9 changed files with 755 additions and 10 deletions

View file

@ -75,6 +75,12 @@ impl BrightnessGrid {
}
pub fn copy_raw(&self) -> Vec<u8> {
self.actual.read().unwrap().data_ref().iter().map(u8::from).collect()
self.actual
.read()
.unwrap()
.data_ref()
.iter()
.map(u8::from)
.collect()
}
}