public static extern PmError Pm_Write(IntPtr stream, PmEvent[] buffer, int length);
public static PmError Pm_Write(IntPtr stream, PmEvent[] buffer, int length) { return Is64Bit ? PortMidiMethods64.Pm_Write(stream, buffer, length) : PortMidiMethods32.Pm_Write(stream, buffer, length); }