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

Method read

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

Source from the content-addressed store, hash-verified

127// ----------------------------------------------------------------------------------------------------
128struct IStreamMpg123 {
129 static ssize_t read( void* userData, void* ptr, size_t count ) {
130 ci::IStreamCinder* stream = static_cast<ci::IStreamCinder*>( userData );
131 size_t pos0 = stream->tell();
132 stream->readData( ptr, count );
133 size_t pos1 = stream->tell();
134 return pos1 - pos0;
135 }
136
137 static off_t seek( void* userData, off_t offset, int whence ) {
138 ci::IStreamCinder* stream = static_cast<ci::IStreamCinder*>( userData );

Callers

nothing calls this directly

Calls 2

readDataMethod · 0.80
tellMethod · 0.45

Tested by

no test coverage detected