MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / Skip

Method Skip

src/decoder/DecoderBuffer.cxx:38–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38bool
39DecoderBuffer::Skip(size_t nbytes) noexcept
40{
41 const auto r = buffer.Read();
42 if (r.size() >= nbytes) {
43 buffer.Consume(nbytes);
44 return true;
45 }
46
47 buffer.Clear();
48 nbytes -= r.size();
49
50 return decoder_skip(client, is, nbytes);
51}

Callers 1

faad_song_durationFunction · 0.45

Calls 4

decoder_skipFunction · 0.85
ReadMethod · 0.45
ConsumeMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected