JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::midi_ci::detail::Marshalling::Writer Class Reference

#include <juce_CIMarshalling.h>

Collaboration diagram for juce::midi_ci::detail::Marshalling::Writer:

Public Member Functions

 Writer (std::vector< std::byte > &b)
 
 Writer (std::vector< std::byte > &b, int v)
 
std::optional< int > getVersion () const
 
template<typename... T>
bool operator() (const T &... t)
 

Private Member Functions

void doArchive (ChannelInGroup x)
 
template<size_t N>
void doArchive (const std::array< std::byte, N > &x)
 
template<typename T >
void doArchive (const T &t)
 
template<uint8_t NumBytes, typename T , bool B>
void doArchive (MessageMeta::SpanWithSizeBytes< NumBytes, T, B > x)
 
template<typename T >
void doArchive (Named< T > named)
 
template<typename T , size_t N>
void doArchive (Span< const T, N > x)
 
void doArchive (std::byte x)
 
void doArchive (uint16_t x)
 
void doArchive (uint32_t x)
 
template<typename T >
bool doArchiveChecked (T &&t)
 

Private Attributes

std::vector< std::byte > & bytes
 
bool failed = false
 
int version {}
 

Constructor & Destructor Documentation

◆ Writer() [1/2]

juce::midi_ci::detail::Marshalling::Writer::Writer ( std::vector< std::byte > &  b)
inlineexplicit

◆ Writer() [2/2]

juce::midi_ci::detail::Marshalling::Writer::Writer ( std::vector< std::byte > &  b,
int  v 
)
inline

Member Function Documentation

◆ doArchive() [1/9]

void juce::midi_ci::detail::Marshalling::Writer::doArchive ( ChannelInGroup  x)
inlineprivate

◆ doArchive() [2/9]

template<size_t N>
void juce::midi_ci::detail::Marshalling::Writer::doArchive ( const std::array< std::byte, N > &  x)
inlineprivate

◆ doArchive() [3/9]

template<typename T >
void juce::midi_ci::detail::Marshalling::Writer::doArchive ( const T &  t)
inlineprivate

◆ doArchive() [4/9]

template<uint8_t NumBytes, typename T , bool B>
void juce::midi_ci::detail::Marshalling::Writer::doArchive ( MessageMeta::SpanWithSizeBytes< NumBytes, T, B >  x)
inlineprivate

References jassertfalse, and juce::numBytes().

◆ doArchive() [5/9]

template<typename T >
void juce::midi_ci::detail::Marshalling::Writer::doArchive ( Named< T >  named)
inlineprivate

References juce::named().

◆ doArchive() [6/9]

template<typename T , size_t N>
void juce::midi_ci::detail::Marshalling::Writer::doArchive ( Span< const T, N >  x)
inlineprivate

◆ doArchive() [7/9]

void juce::midi_ci::detail::Marshalling::Writer::doArchive ( std::byte  x)
inlineprivate

◆ doArchive() [8/9]

void juce::midi_ci::detail::Marshalling::Writer::doArchive ( uint16_t  x)
inlineprivate

◆ doArchive() [9/9]

void juce::midi_ci::detail::Marshalling::Writer::doArchive ( uint32_t  x)
inlineprivate

◆ doArchiveChecked()

template<typename T >
bool juce::midi_ci::detail::Marshalling::Writer::doArchiveChecked ( T &&  t)
inlineprivate

◆ getVersion()

std::optional< int > juce::midi_ci::detail::Marshalling::Writer::getVersion ( ) const
inline

◆ operator()()

template<typename... T>
bool juce::midi_ci::detail::Marshalling::Writer::operator() ( const T &...  t)
inline

Member Data Documentation

◆ bytes

std::vector<std::byte>& juce::midi_ci::detail::Marshalling::Writer::bytes
private

◆ failed

bool juce::midi_ci::detail::Marshalling::Writer::failed = false
private

◆ version

int juce::midi_ci::detail::Marshalling::Writer::version {}
private

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