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

Function loadAndroidAssetStream

src/cinder/Stream.cpp:768–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766
767#if defined( CINDER_ANDROID )
768IStreamAndroidAssetRef loadAndroidAssetStream( const fs::path &path )
769{
770 AAsset *f = ci::app::android::AssetFileSystem_fopen( path.string().c_str(), "rb" );
771
772 if( f ) {
773 IStreamAndroidAssetRef s = IStreamAndroidAsset::create( f, true );
774 s->setFileName( path );
775 return s;
776 }
777 else
778 return IStreamAndroidAssetRef();
779}
780#endif // defined( CINDER_ANDROID )
781
782StreamExc::StreamExc( const std::string &fontName ) throw()

Callers 2

createBufferMethod · 0.85
createStreamMethod · 0.85

Calls 4

AssetFileSystem_fopenFunction · 0.85
createFunction · 0.50
c_strMethod · 0.45
stringMethod · 0.45

Tested by

no test coverage detected