Struct chunking_parameters

Struct Documentation

struct libremidi::chunking_parameters

Used to determine how large sent messages will be chunked.

Public Members

std::chrono::milliseconds interval = {}
int32_t size = {}
std::function<bool(std::chrono::microseconds, int)> wait = chunking_parameters::default_wait

Will be called by the chunking code to allow the API user to wait.

By default just calls sleep. Arguments are: the time that must be waited, the bytes currently written. Return false if you want to abort the transfer, and true otherwise.

Public Static Functions

static inline bool default_wait(std::chrono::microseconds time_to_wait, int written_bytes)