MCPcopy Create free account
hub / github.com/SFML/SFML / read

Function read

src/SFML/Audio/SoundFileReaderOgg.cpp:41–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39namespace
40{
41std::size_t read(void* ptr, std::size_t size, std::size_t nmemb, void* data)
42{
43 auto* stream = static_cast<sf::InputStream*>(data);
44 return stream->read(ptr, size * nmemb).value_or(-1);
45}
46
47int seek(void* data, ogg_int64_t signedOffset, int whence)
48{

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected