MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ try_bytes()

const std::vector< uint8_t > * MayaFlux::Core::InputValue::try_bytes ( ) const
noexcept

Safe bytes extraction.

Returns
Pointer to bytes, or nullptr if this is not BYTES.

Definition at line 275 of file InputBinding.cpp.

276{
277 if (type != Type::BYTES)
278 return nullptr;
279 return &std::get<std::vector<uint8_t>>(data);
280}
@ BYTES
Raw byte data (HID reports, sysex)
std::variant< double, std::vector< double >, std::vector< uint8_t >, MIDIMessage, OSCMessage > data

References BYTES, data, and type.