23namespace juce::universal_midi_packets
28 constexpr auto denom = 6;
29 return (size / denom) + ((size % denom) != 0);
34 const auto numBytes = Utils::getChannel (packet[0]);
35 constexpr uint8_t maxBytes = 6;
36 jassert (numBytes <= maxBytes);
40 { { std::byte { packet.getU8<2>() },
41 std::byte { packet.getU8<3>() },
42 std::byte { packet.getU8<4>() },
43 std::byte { packet.getU8<5>() },
44 std::byte { packet.getU8<6>() },
45 std::byte { packet.getU8<7>() } } },
46 jmin (numBytes, maxBytes)
static uint32_t getNumPacketsRequiredForDataSize(uint32_t)
static PacketBytes getDataBytes(const PacketX2 &packet)