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

Method Read

test/TestRewindInputStream.cxx:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 size_t Read(std::unique_lock<Mutex> &,
32 std::span<std::byte> dest) override {
33 size_t nbytes = std::min(remaining, dest.size());
34 memcpy(dest.data(), data, nbytes);
35 data += nbytes;
36 remaining -= nbytes;
37 offset += nbytes;
38 return nbytes;
39 }
40};
41
42TEST(RewindInputStream, Basic)

Callers 1

TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected