BusBoy  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
BUSBOY::SimpleDataFileSource Class Reference

#include <SimpleDataFileSource.h>

Inheritance diagram for BUSBOY::SimpleDataFileSource:
BUSBOY::DataFileSource

Public Member Functions

 SimpleDataFileSource (char *bytes, size_t size, DataFile::Allocation alloc=DataFile::NEW)
 
char * getFileBytes () const
 NOTE: logical const, implementations may make changes behind the interface to lookup the data. More...
 
size_t getFileSize () const
 NOTE: logical const, implementations may make changes behind the interface to lookup the data. More...
 
size_t read (char *buf, size_t num)
 Read up to the next num bytes into buf, returns the number of bytes read. More...
 
size_t skip (size_t num)
 Skip up to the next num bytes, returns the number of bytes skipped. More...
 
void release ()
 
bool isReleased () const
 
 ~SimpleDataFileSource ()
 
- Public Member Functions inherited from BUSBOY::DataFileSource
bool operator!= (const DataFileSource &src) const
 

Constructor & Destructor Documentation

BUSBOY::SimpleDataFileSource::SimpleDataFileSource ( char *  bytes,
size_t  size,
DataFile::Allocation  alloc = DataFile::NEW 
)
BUSBOY::SimpleDataFileSource::~SimpleDataFileSource ( )

Member Function Documentation

char * BUSBOY::SimpleDataFileSource::getFileBytes ( ) const
virtual

NOTE: logical const, implementations may make changes behind the interface to lookup the data.

Implements BUSBOY::DataFileSource.

size_t BUSBOY::SimpleDataFileSource::getFileSize ( ) const
virtual

NOTE: logical const, implementations may make changes behind the interface to lookup the data.

Implements BUSBOY::DataFileSource.

bool BUSBOY::SimpleDataFileSource::isReleased ( ) const
virtual
size_t BUSBOY::SimpleDataFileSource::read ( char *  buf,
size_t  num 
)
virtual

Read up to the next num bytes into buf, returns the number of bytes read.

Reimplemented from BUSBOY::DataFileSource.

void BUSBOY::SimpleDataFileSource::release ( )
virtual
size_t BUSBOY::SimpleDataFileSource::skip ( size_t  num)
virtual

Skip up to the next num bytes, returns the number of bytes skipped.

Reimplemented from BUSBOY::DataFileSource.


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

Copyright 2014 Google Inc. All rights reserved.