seoj135 / Android-Asset-to-fp-NDK

Access Android Assets as c++ FILE* or iostream in Android Native Development System

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

 *  Author: Seo Gangwon
 *  Date: 2019-01-10
 *  Contact: seogs12@naver.com
 *
 *  This is revised by Seogangwon to use Android asset to iostream. 2019-01-10
 *  The original code is from California Institute of Technology
 *
 *  ---------------------------------------------------------------------------------
 *  Copyright (c) 2002-2004 California Institute of Technology
 *  Copyright (c) 2004-2007 University of Southern California
 *  Rob Peters <rjpeters at usc dot edu>
 *
 *  This was a parts of Library that is GroovX On GNU General Public License
 *  REF
 *  BaseURL:    http://ilab.usc.edu/rjpeters/groovx/
 *  Header :    http://ilab.usc.edu/rjpeters/groovx/gzstreambuf_8h-source.html
 *  Source :    http://ilab.usc.edu/rjpeters/groovx/gzstreambuf_8cc-source.html
 *
 *  ---------------------------------------------------------------------------------
 *  Usage
 *
 *  #include <AssetFILEp.h>
 *  #include <AssetBuf.h>
 *  FILE* fp = _s_ndk_util::android_fopen([AssetFileName] , "r", [AssetManagerFromAndroidContext]);
 *  _s_ndk_util::AssetBuf assetBuf(fp, "r", false);
 *  std::iostream fs(&assetBuf);
 *
 *  ps+ [AssetFileName] location is res/assets (src/main/assets)

About

Access Android Assets as c++ FILE* or iostream in Android Native Development System


Languages

Language:C++ 100.0%