webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
webrtc::FileWrapper Class Reference

#include <file_wrapper.h>

Inheritance diagram for webrtc::FileWrapper:
webrtc::InStream webrtc::OutStream webrtc::InStream webrtc::OutStream webrtc::RewindableStream webrtc::RewindableStream webrtc::RewindableStream webrtc::RewindableStream webrtc::RewindableStream webrtc::RewindableStream webrtc::RewindableStream webrtc::RewindableStream

Public Member Functions

 FileWrapper (FILE *file, size_t max_size)
 
 ~FileWrapper () override
 
 FileWrapper (FileWrapper &&other)
 
FileWrapperoperator= (FileWrapper &&other)
 
bool is_open () const
 
bool OpenFile (const char *file_name_utf8, bool read_only)
 
bool OpenFromFileHandle (FILE *handle)
 
void CloseFile ()
 
void SetMaxFileSize (size_t bytes)
 
int Flush ()
 
int Rewind () override
 
int Read (void *buf, size_t length) override
 
bool Write (const void *buf, size_t length) override
 
 FileWrapper (FILE *file, size_t max_size)
 
 ~FileWrapper () override
 
 FileWrapper (FileWrapper &&other)
 
FileWrapperoperator= (FileWrapper &&other)
 
bool is_open () const
 
bool OpenFile (const char *file_name_utf8, bool read_only)
 
bool OpenFromFileHandle (FILE *handle)
 
void CloseFile ()
 
void SetMaxFileSize (size_t bytes)
 
int Flush ()
 
int Rewind () override
 
int Read (void *buf, size_t length) override
 
bool Write (const void *buf, size_t length) override
 
- Public Member Functions inherited from webrtc::RewindableStream
virtual ~RewindableStream ()
 
virtual ~RewindableStream ()
 

Static Public Member Functions

static FileWrapperCreate ()
 
static FileWrapper Open (const char *file_name_utf8, bool read_only)
 
static FileWrapperCreate ()
 
static FileWrapper Open (const char *file_name_utf8, bool read_only)
 

Static Public Attributes

static const size_t kMaxFileNameSize = 1024
 

Constructor & Destructor Documentation

◆ FileWrapper() [1/4]

webrtc::FileWrapper::FileWrapper ( FILE *  file,
size_t  max_size 
)

◆ ~FileWrapper() [1/2]

webrtc::FileWrapper::~FileWrapper ( )
override

◆ FileWrapper() [2/4]

webrtc::FileWrapper::FileWrapper ( FileWrapper &&  other)

◆ FileWrapper() [3/4]

webrtc::FileWrapper::FileWrapper ( FILE *  file,
size_t  max_size 
)

◆ ~FileWrapper() [2/2]

webrtc::FileWrapper::~FileWrapper ( )
override

◆ FileWrapper() [4/4]

webrtc::FileWrapper::FileWrapper ( FileWrapper &&  other)

Member Function Documentation

◆ CloseFile() [1/2]

void webrtc::FileWrapper::CloseFile ( )

◆ CloseFile() [2/2]

void webrtc::FileWrapper::CloseFile ( )

◆ Create() [1/2]

FileWrapper * webrtc::FileWrapper::Create ( )
static

◆ Create() [2/2]

static FileWrapper* webrtc::FileWrapper::Create ( )
static

◆ Flush() [1/2]

int webrtc::FileWrapper::Flush ( )

◆ Flush() [2/2]

int webrtc::FileWrapper::Flush ( )

◆ is_open() [1/2]

bool webrtc::FileWrapper::is_open ( ) const
inline

◆ is_open() [2/2]

bool webrtc::FileWrapper::is_open ( ) const
inline

◆ Open() [1/2]

FileWrapper webrtc::FileWrapper::Open ( const char *  file_name_utf8,
bool  read_only 
)
static

◆ Open() [2/2]

static FileWrapper webrtc::FileWrapper::Open ( const char *  file_name_utf8,
bool  read_only 
)
static

◆ OpenFile() [1/2]

bool webrtc::FileWrapper::OpenFile ( const char *  file_name_utf8,
bool  read_only 
)

◆ OpenFile() [2/2]

bool webrtc::FileWrapper::OpenFile ( const char *  file_name_utf8,
bool  read_only 
)

◆ OpenFromFileHandle() [1/2]

bool webrtc::FileWrapper::OpenFromFileHandle ( FILE *  handle)

◆ OpenFromFileHandle() [2/2]

bool webrtc::FileWrapper::OpenFromFileHandle ( FILE *  handle)

◆ operator=() [1/2]

FileWrapper & webrtc::FileWrapper::operator= ( FileWrapper &&  other)

◆ operator=() [2/2]

FileWrapper& webrtc::FileWrapper::operator= ( FileWrapper &&  other)

◆ Read() [1/2]

int webrtc::FileWrapper::Read ( void buf,
size_t  length 
)
overridevirtual

Implements webrtc::InStream.

◆ Read() [2/2]

int webrtc::FileWrapper::Read ( void buf,
size_t  length 
)
overridevirtual

Implements webrtc::InStream.

◆ Rewind() [1/2]

int webrtc::FileWrapper::Rewind ( )
overridevirtual

◆ Rewind() [2/2]

int webrtc::FileWrapper::Rewind ( )
overridevirtual

◆ SetMaxFileSize() [1/2]

void webrtc::FileWrapper::SetMaxFileSize ( size_t  bytes)

◆ SetMaxFileSize() [2/2]

void webrtc::FileWrapper::SetMaxFileSize ( size_t  bytes)

◆ Write() [1/2]

bool webrtc::FileWrapper::Write ( const void buf,
size_t  length 
)
overridevirtual

Implements webrtc::OutStream.

◆ Write() [2/2]

bool webrtc::FileWrapper::Write ( const void buf,
size_t  length 
)
overridevirtual

Implements webrtc::OutStream.

Member Data Documentation

◆ kMaxFileNameSize

static const size_t webrtc::FileWrapper::kMaxFileNameSize = 1024
static

The documentation for this class was generated from the following files: