RAUL  0.8.0
Public Member Functions | List of all members
Raul::EventRingBuffer Class Reference

A RingBuffer of events (generic time-stamped binary "blobs"). More...

#include <EventRingBuffer.hpp>

Inheritance diagram for Raul::EventRingBuffer:
Inheritance graph
Collaboration diagram for Raul::EventRingBuffer:
Collaboration graph

Public Member Functions

 EventRingBuffer (size_t capacity)
 
size_t capacity () const
 
size_t write (TimeStamp time, size_t size, const uint8_t *buf)
 
bool read (TimeStamp *time, size_t *size, uint8_t *buf)
 

Detailed Description

A RingBuffer of events (generic time-stamped binary "blobs").

This packs a timestamp, size, and size bytes of data flat into the buffer. Useful for MIDI events, OSC messages, etc.

Constructor & Destructor Documentation

◆ EventRingBuffer()

Raul::EventRingBuffer::EventRingBuffer ( size_t  capacity)
inlineexplicit
Parameters
capacityRingbuffer capacity in bytes.

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