MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / getNextEvent

Method getNextEvent

lib/data/fluxmapreader.cc:21–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void FluxmapReader::getNextEvent(int& event, unsigned& ticks)
22{
23 ticks = 0;
24
25 while (!eof())
26 {
27 uint8_t b = _bytes[_pos.bytes++];
28 ticks += b & 0x3f;
29 if (!b || (b & (F_BIT_PULSE | F_BIT_INDEX)))
30 {
31 _pos.ticks += ticks;
32 event = b & 0xc0;
33 return;
34 }
35 }
36
37 _pos.ticks += ticks;
38 event = F_EOF;
39}
40
41void FluxmapReader::skipToEvent(int event)
42{

Callers 4

addFluxMethod · 0.80
addFluxMethod · 0.80
addFluxMethod · 0.80
addFluxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected