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

Function decoder_skip

src/decoder/DecoderAPI.cxx:60–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60bool
61decoder_skip(DecoderClient *client, InputStream &is, size_t size) noexcept
62{
63 while (size > 0) {
64 std::byte buffer[1024];
65
66 size_t nbytes = decoder_read(client, is,
67 std::span{buffer, std::min(sizeof(buffer), size)});
68 if (nbytes == 0)
69 return false;
70
71 size -= nbytes;
72 }
73
74 return true;
75}

Callers 3

SkipMethod · 0.85
dsdlib_skipFunction · 0.85
ParseId3Method · 0.85

Calls 1

decoder_readFunction · 0.85

Tested by

no test coverage detected