MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / readFunc

Method readFunc

source/core/StarAudio.cpp:210–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208 }
209 #else
210 static size_t readFunc(void* ptr, size_t size, size_t nmemb, void* datasource) {
211 return static_cast<ExternalBuffer*>(datasource)->read((char*)ptr, size * nmemb) / size;
212 }
213
214 static int seekFunc(void* datasource, ogg_int64_t offset, int whence) {
215 static_cast<ExternalBuffer*>(datasource)->seek(offset, (IOSeek)whence);

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected