MidiMessage.lengthInBytes

Return: size in bytes of the MIDI message, if it were serialized without offset. -1 if unknown size (either the status byte doesn't start with 1xxxxxx, or starts with 1111xxxx (can be many different things). Reference: https://www.midi.org/specifications-old/item/table-2-expanded-messages-list-status-bytes

struct MidiMessage
pure nothrow @nogc const
int
lengthInBytes
()

Meta