JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::MidiMessage::VariableLengthValue Struct Reference

Holds information about a variable-length value which was parsed from a stream of bytes. More...

#include <juce_MidiMessage.h>

Collaboration diagram for juce::MidiMessage::VariableLengthValue:

Public Member Functions

 VariableLengthValue ()=default
 
 VariableLengthValue (int valueIn, int bytesUsedIn)
 
bool isValid () const noexcept
 

Public Attributes

int bytesUsed = 0
 
int value = 0
 

Detailed Description

Holds information about a variable-length value which was parsed from a stream of bytes.

A valid value requires that bytesUsed is greater than 0.

Constructor & Destructor Documentation

◆ VariableLengthValue() [1/2]

juce::MidiMessage::VariableLengthValue::VariableLengthValue ( )
default

◆ VariableLengthValue() [2/2]

juce::MidiMessage::VariableLengthValue::VariableLengthValue ( int  valueIn,
int  bytesUsedIn 
)
inline

Member Function Documentation

◆ isValid()

bool juce::MidiMessage::VariableLengthValue::isValid ( ) const
inlinenoexcept

Member Data Documentation

◆ bytesUsed

int juce::MidiMessage::VariableLengthValue::bytesUsed = 0

◆ value

int juce::MidiMessage::VariableLengthValue::value = 0

The documentation for this struct was generated from the following file: