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

Function decoder_read

src/decoder/DecoderAPI.cxx:10–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <cassert>
9
10size_t
11decoder_read(DecoderClient *client,
12 InputStream &is,
13 std::span<std::byte> dest) noexcept
14{
15 /* XXX don't allow client==nullptr */
16 if (client != nullptr)
17 return client->Read(is, dest);
18
19 try {
20 return is.LockRead(dest);
21 } catch (...) {
22 LogError(std::current_exception());
23 return 0;
24 }
25}
26
27size_t
28decoder_read_much(DecoderClient *client, InputStream &is,

Callers 13

decoder_read_muchFunction · 0.85
decoder_read_fullFunction · 0.85
decoder_skipFunction · 0.85
ReadMethod · 0.85
FillMethod · 0.85
FillBufferFunction · 0.85
ReadBytesMethod · 0.85
ReadMethod · 0.85
ReadMethod · 0.85
mod_loadfileFunction · 0.85
ogg_codec_detectFunction · 0.85
mpc_read_cbFunction · 0.85

Calls 2

ReadMethod · 0.45
LockReadMethod · 0.45

Tested by

no test coverage detected