MCPcopy Create free account
hub / github.com/celtera/libremidi / push

Method push

examples/qmidiin.cpp:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 std::unique_ptr<message[]> ring{};
39
40 bool push(const message& msg)
41 {
42 auto [sz, _, b] = get_dimensions();
43
44 if (sz < ringSize - 1)
45 {
46 ring[b] = msg;
47 back = (back + 1) % ringSize;
48 return true;
49 }
50
51 return false;
52 }
53
54 bool pop(message& msg)
55 {

Callers 12

addMethod · 0.80
openNodeMethod · 0.80
OFunction · 0.80
addRuleMethod · 0.80
addRuleMethod · 0.80
neFunction · 0.80
highlight.jsFile · 0.80
queued_midi_inClass · 0.80
shared_handler.hppFile · 0.80
shared_handler.hppFile · 0.80
shared_handler.hppFile · 0.80
midi_access.hppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected