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

Method seek

lib/data/fluxmapreader.cc:91–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void FluxmapReader::seek(nanoseconds_t ns)
92{
93 unsigned ticks = ns / NS_PER_TICK;
94 if (ticks < _pos.ticks)
95 {
96 _pos.ticks = 0;
97 _pos.bytes = 0;
98 }
99
100 while (!eof() && (_pos.ticks < ticks))
101 {
102 int e;
103 unsigned t;
104 getNextEvent(e, t);
105 }
106 _pos.zeroes = 0;
107}
108
109void FluxmapReader::seekToByte(unsigned b)
110{

Callers 15

decodeDataRecordMethod · 0.45
decodeSectorRecordMethod · 0.45
decodeDataRecordMethod · 0.45
decodeSectorRecordMethod · 0.45
decodeSectorRecordMethod · 0.45
decodeSectorRecordMethod · 0.45
encodeMethod · 0.45
decodeDataRecordMethod · 0.45
writeImageMethod · 0.45
writeImageMethod · 0.45
writeImageMethod · 0.45
writeImageMethod · 0.45

Calls

no outgoing calls

Tested by 3

mainInspectFunction · 0.36
test_readsFunction · 0.36
test_writesFunction · 0.36