|
|
@@ -33,13 +33,11 @@ namespace juce::midi_ci::detail::MessageMeta |
|
|
|
{
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
/* The maximum CI version that can be parsed and generated by this implementation. */
|
|
|
|
/* The maximum CI version that can be parsed and generated by this implementation. */
|
|
|
|
static constexpr std::byte implementationVersion { 0x02 };
|
|
|
|
|
|
|
|
/* @internal
|
|
|
|
|
|
|
|
Wraps a pointer to a Span. Used to indicate to CI readers/writers that a particular field is
|
|
|
|
of variable length, starting with a 16-bit or 32-bit byte count.
|
|
|
|
/* Wraps a pointer to a Span. Used to indicate to CI readers/writers that a particular field is
|
|
|
|
of variable length, starting with a 16-bit or 32-bit byte count.
|
|
|
|
*/
|
|
|
|
template <uint8_t NumBytes, typename T, bool isJson = false>
|
|
|
|
struct SpanWithSizeBytes
|
|
|
@@ -47,10 +45,7 @@ struct SpanWithSizeBytes |
|
|
|
T& span;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* @internal
|
|
|
|
|
|
|
|
Creates a SpanWithSizeBytes with an appropriate template argument.
|
|
|
|
*/
|
|
|
|
/* Creates a SpanWithSizeBytes with an appropriate template argument. */
|
|
|
|
template <uint8_t NumBytes, typename T>
|
|
|
|
static constexpr auto makeSpanWithSizeBytes ( Span<T>& span) { return SpanWithSizeBytes<NumBytes, Span<T>> { span }; }
|
|
|
|
|
|
|
@@ -177,6 +172,8 @@ struct Meta<Message::ProcessEndMidiMessageReport> : Metadata<0x44> {}; |
|
|
|
|
|
|
|
} // namespace juce::midi_ci::detail::MessageMeta
|
|
|
|
|
|
|
|
#ifndef DOXYGEN
|
|
|
|
|
|
|
|
namespace juce
|
|
|
|
{
|
|
|
|
|
|
|
@@ -622,3 +619,5 @@ struct SerialisationTraits<ci::Message::ProcessEndMidiMessageReport> : VersionBa |
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace juce
|
|
|
|
|
|
|
|
#endif // ifndef DOXYGEN
|