unsafe fn allocate_event() -> *mut Event {
        let (event_size, event_align) = (
            max(
                std::mem::size_of::<vst::api::SysExEvent>(),
                max(
                    std::mem::size_of::<Event>(),
                    std::mem::size_of::<MidiEvent>(),
                ),
            ),
            std::mem::align_of::<Event>(),
        );
        let event_layout = std::alloc::Layout::from_size_align_unchecked(event_size, event_align);

        std::alloc::alloc(event_layout) as *mut Event
    }
/// Allocates a simple event. We're only using MIDI events for now, but should create enough
/// space for any message type.
Allocates a simple event. We're only using MIDI events for now, but should create enough
space for any message type.
Allocates a simple event . We ' re only using MIDI events for now but should create enough space for any message type .
unsafe fn allocate_event() -> *mut Event {
        let (event_size, event_align) = (
            max(
                std::mem::size_of::<vst::api::SysExEvent>(),
                max(
                    std::mem::size_of::<Event>(),
                    std::mem::size_of::<MidiEvent>(),
                ),
            ),
            std::mem::align_of::<Event>(),
        );
        let event_layout = std::alloc::Layout::from_size_align_unchecked(event_size, event_align);
        std::alloc::alloc(event_layout) as *mut Event
    }
unsafe fn allocate_event ( ) -> * mut Event { let ( event_size , event_align ) = ( max ( std :: mem :: size_of :: < vst :: api :: SysExEvent > ( ) , max ( std :: mem :: size_of :: < Event > ( ) , std :: mem :: size_of :: < MidiEvent > ( ) , ) , ) , std :: mem :: align_of :: < Event > ( ) , ) ; let event_layout = std :: alloc :: Layout :: from_size_align_unchecked ( event_size , event_align ) ; std :: alloc :: alloc ( event_layout ) as * mut Event }
Allocates a simple event.
Allocates a simple event .