unsafe fn allocate_events(capacity: usize) -> *mut Events {
        let event_ptr_size = std::mem::size_of::<*mut Event>();
        let events_layout = std::alloc::Layout::from_size_align_unchecked(
            std::mem::size_of::<vst::api::Events>() + event_ptr_size * capacity,
            std::mem::align_of::<vst::api::Events>(),
        );

        std::alloc::alloc(events_layout) as *mut vst::api::Events
    }
/// Allocates the `Events` struct. This is a C struct with a trailing array of events.
/// The Rust declaration sizes this array as 2 elements ; here we append space for another
/// capacity elements after it.
Allocates the `Events` struct. This is a C struct with a trailing array of events.
The Rust declaration sizes this array as 2 elements ; here we append space for another
capacity elements after it.
Allocates the ` Events ` struct . This is a C struct with a trailing array of events . The Rust declaration sizes this array as 2 elements ; here we append space for another capacity elements after it .
unsafe fn allocate_events(capacity: usize) -> *mut Events {
        let event_ptr_size = std::mem::size_of::<*mut Event>();
        let events_layout = std::alloc::Layout::from_size_align_unchecked(
            std::mem::size_of::<vst::api::Events>() + event_ptr_size * capacity,
            std::mem::align_of::<vst::api::Events>(),
        );
        std::alloc::alloc(events_layout) as *mut vst::api::Events
    }
unsafe fn allocate_events ( capacity : usize ) -> * mut Events { let event_ptr_size = std :: mem :: size_of :: < * mut Event > ( ) ; let events_layout = std :: alloc :: Layout :: from_size_align_unchecked ( std :: mem :: size_of :: < vst :: api :: Events > ( ) + event_ptr_size * capacity , std :: mem :: align_of :: < vst :: api :: Events > ( ) , ) ; std :: alloc :: alloc ( events_layout ) as * mut vst :: api :: Events }
Allocates the `Events` struct.
Allocates the ` Events ` struct .
capacity
usize
capacity
usize