1 #ifndef MSP_IO_ASSET_H_
2 #define MSP_IO_ASSET_H_
10 Opens a file from the application's assets. On Android, this means the assets
11 contained within the APK. On other platfoms, assets are located in the
12 directory indicated by FS::get_sys_data_dir(). Assets are always read-only.
14 class Asset: public Seekable
22 Asset(const std::string &);
25 virtual void set_block(bool);
26 virtual void set_inherit(bool);
29 virtual unsigned do_write(const char *, unsigned);
30 virtual unsigned do_read(char *, unsigned);
33 virtual const Handle &get_handle(Mode);
35 virtual SeekOffset seek(SeekOffset, SeekType);
36 virtual SeekOffset tell() const;