mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 05:36:37 +02:00
🎉 Save shape data in rust memory
This commit is contained in:
parent
48909dc3c4
commit
65ee2f9081
13 changed files with 479 additions and 297 deletions
8
render-wasm/src/utils.rs
Normal file
8
render-wasm/src/utils.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
use uuid::Uuid;
|
||||
|
||||
pub fn uuid_from_u32_quartet(a: u32, b: u32, c: u32, d: u32) -> Uuid
|
||||
{
|
||||
let hi: u64 = ((a as u64) << 32) | b as u64;
|
||||
let lo: u64 = ((c as u64) << 32) | d as u64;
|
||||
Uuid::from_u64_pair(hi, lo)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue