MCPcopy Create free account
hub / github.com/cinder/Cinder / read

Method read

src/cinder/audio/linux/FileAudioLoader.cpp:107–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 static sf_count_t read( void* ptr, sf_count_t count, void* userData ) {
108 ci::IStreamCinder* stream = static_cast<ci::IStreamCinder*>( userData );
109 size_t pos0 = stream->tell();
110 stream->readData( ptr, count );
111 size_t pos1 = stream->tell();
112 return pos1 - pos0;
113 }
114
115 static sf_count_t write( const void* ptr, sf_count_t count, void *userData ) {
116 return 0;

Callers

nothing calls this directly

Calls 2

readDataMethod · 0.80
tellMethod · 0.45

Tested by

no test coverage detected