MP4v2
Public Types | Public Member Functions | Static Public Member Functions | List of all members
mp4v2::platform::io::FileProvider Class Referenceabstract
Inheritance diagram for mp4v2::platform::io::FileProvider:
mp4v2::platform::io::CallbacksFileProvider mp4v2::platform::io::CustomFileProvider mp4v2::platform::io::File

Public Types

enum  Mode {
  MODE_UNDEFINED, MODE_READ, MODE_MODIFY,
  MODE_CREATE
}
 file operation mode flags More...
 
typedef int64_t Size
 type used to represent all file sizes and offsets
 

Public Member Functions

virtual bool open (const std::string &name, Mode mode)=0
 
virtual bool seek (Size pos)=0
 
virtual bool read (void *buffer, Size size, Size &nin)=0
 
virtual bool write (const void *buffer, Size size, Size &nout)=0
 
virtual bool truncate (Size size)=0
 
virtual bool close ()=0
 
virtual bool getSize (Size &nout)=0
 

Static Public Member Functions

static FileProviderstandard ()
 

Member Enumeration Documentation

◆ Mode

file operation mode flags

Enumerator
MODE_UNDEFINED 

undefined

MODE_READ 

file may be read

MODE_MODIFY 

file may be read/written

MODE_CREATE 

file will be created/truncated for read/write