mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-19 09:22:12 +00:00
progress
This commit is contained in:
1 parent
41b9116c6a
commit
97d597e139
181 files changed
+1970
-2643
No files matched your search
+5
-3
@@ -60,7 +60,7 @@ impl App {
|
||||
let mut data = vec![];
|
||||
let mut lengths = vec![];
|
||||
for name in names {
|
||||
let file = std::fs::read(format!("../gpx-rs/engine/data/{name}.gpx")).unwrap();
|
||||
let file = std::fs::read(format!("../gpx-rs/data/{name}.gpx")).unwrap();
|
||||
lengths.push(file.len());
|
||||
data.extend(file);
|
||||
}
|
||||
@@ -77,8 +77,10 @@ impl App {
|
||||
|
||||
fn f64s(bytes: &[u8]) -> Vec<f64> {
|
||||
bytes
|
||||
.chunks_exact(8)
|
||||
.map(|chunk| f64::from_le_bytes(chunk.try_into().unwrap()))
|
||||
.as_chunks::<8>()
|
||||
.0
|
||||
.iter()
|
||||
.map(|chunk| f64::from_le_bytes(*chunk))
|
||||
.collect()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user