modelassetlib_native/util/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod jni;
pub mod error_message;
pub mod image;
pub mod bits;
pub mod gltf;

pub fn new_buffer_vec<T>(
    capacity: usize,
    initial_val: T
) -> Vec<T> where T: Copy {
    let mut vec = Vec::with_capacity(capacity);
    for _ in 0..capacity {
        vec.push(initial_val);
    }
    vec
}