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

Function decoder_read_full

src/decoder/DecoderAPI.cxx:45–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45bool
46decoder_read_full(DecoderClient *client, InputStream &is,
47 std::span<std::byte> dest) noexcept
48{
49 while (!dest.empty()) {
50 size_t nbytes = decoder_read(client, is, dest);
51 if (nbytes == 0)
52 return false;
53
54 dest = dest.subspan(nbytes);
55 }
56
57 return true;
58}
59
60bool
61decoder_skip(DecoderClient *client, InputStream &is, size_t size) noexcept

Callers 12

dsdiff_read_idFunction · 0.85
dsdiff_read_chunk_headerFunction · 0.85
dsdiff_read_payloadFunction · 0.85
dsdiff_read_prop_sndFunction · 0.85
dsdiff_handle_native_tagFunction · 0.85
dsdiff_read_metadataFunction · 0.85
dsdiff_decode_chunkFunction · 0.85
ReadMethod · 0.85
dsdlib_tag_id3Function · 0.85
dsf_read_metadataFunction · 0.85
dsf_decode_chunkFunction · 0.85
ParseId3Method · 0.85

Calls 2

decoder_readFunction · 0.85
emptyMethod · 0.80

Tested by

no test coverage detected