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

Function decoder_read_much

src/decoder/DecoderAPI.cxx:27–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27size_t
28decoder_read_much(DecoderClient *client, InputStream &is,
29 std::span<std::byte> dest) noexcept
30{
31 size_t total = 0;
32
33 while (!dest.empty() && !is.LockIsEOF()) {
34 size_t nbytes = decoder_read(client, is, dest);
35 if (nbytes == 0)
36 return false;
37
38 dest = dest.subspan(nbytes);
39 total += nbytes;
40 }
41
42 return total;
43}
44
45bool
46decoder_read_full(DecoderClient *client, InputStream &is,

Callers 2

ReadMethod · 0.85
mpd_mpg123_readFunction · 0.85

Calls 3

decoder_readFunction · 0.85
emptyMethod · 0.80
LockIsEOFMethod · 0.80

Tested by

no test coverage detected