mirror of
https://github.com/penpot/penpot.git
synced 2025-07-19 01:28:54 +02:00
✨ Use skia matrix for internal data
This commit is contained in:
parent
4594c7bf0a
commit
3dcabc9502
13 changed files with 228 additions and 211 deletions
|
@ -57,7 +57,7 @@ pub trait SerializableResult {
|
|||
by the implementation of SerializableResult trait
|
||||
*/
|
||||
pub fn write_vec<T: SerializableResult>(result: Vec<T>) -> *mut u8 {
|
||||
let elem_size = size_of::<T>();
|
||||
let elem_size = size_of::<T::BytesType>();
|
||||
let bytes_len = 4 + result.len() * elem_size;
|
||||
let mut result_bytes = Vec::<u8>::with_capacity(bytes_len);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue