|  | 
| unsigned | insertData (unsigned char const *buffer, unsigned long len, bool useBigBlock, unsigned end=Eof) | 
|  | add stream data in a file, returns the first index  More... 
 | 
|  | 
| bool | useBigBlockFor (unsigned long size) const | 
|  | return true if we need to use big block  More... 
 | 
|  | 
| size_t | getDataAddress (unsigned block, bool isBig) const | 
|  | returns the address of a big/small block  More... 
 | 
|  | 
| unsigned | newBBlock () | 
|  | create a new big block, resize m_data; ... and return is identifier  More... 
 | 
|  | 
| unsigned | newSBlock () | 
|  | create a new small block, ... and returns is identifier  More... 
 | 
|  | 
| DirEntry * | createEntry (std::string const &name) | 
|  | return a new dir entry, if it does not exists  More... 
 | 
|  | 
| bool | updateToSave () | 
|  | finish to update the file ( note: it is better to call this function only one time )  More... 
 | 
|  | 
◆ OStorage() [1/2]
  
  | 
        
          | librevenge::OStorage::OStorage | ( | unsigned long | minSize = 0 | ) |  |  | inline | 
 
 
◆ ~OStorage()
  
  | 
        
          | librevenge::OStorage::~OStorage | ( |  | ) |  |  | inline | 
 
 
◆ OStorage() [2/2]
  
  | 
        
          | librevenge::OStorage::OStorage | ( | const OStorage & |  | ) |  |  | private | 
 
 
◆ addDirectory()
      
        
          | bool librevenge::OStorage::addDirectory | ( | std::string const & | dir | ) |  | 
      
 
 
◆ addStream()
      
        
          | bool librevenge::OStorage::addStream | ( | std::string const & | name, | 
        
          |  |  | unsigned char const * | buffer, | 
        
          |  |  | unsigned long | len | 
        
          |  | ) |  |  | 
      
 
 
◆ createEntry()
  
  | 
        
          | DirEntry* librevenge::OStorage::createEntry | ( | std::string const & | name | ) |  |  | inlineprotected | 
 
return a new dir entry, if it does not exists 
 
 
◆ getDataAddress()
  
  | 
        
          | size_t librevenge::OStorage::getDataAddress | ( | unsigned | block, |  
          |  |  | bool | isBig |  
          |  | ) |  | const |  | inlineprotected | 
 
returns the address of a big/small block 
 
 
◆ getFileData()
  
  | 
        
          | bool librevenge::OStorage::getFileData | ( | std::vector< unsigned char > & | data | ) |  |  | inline | 
 
 
◆ getMaximumSize()
  
  | 
        
          | static unsigned long librevenge::OStorage::getMaximumSize | ( | bool | isBig | ) |  |  | inlinestaticprotected | 
 
returns the maximum size of a big/small block 
 
 
◆ getSubStreamList()
  
  | 
        
          | std::vector<std::string> librevenge::OStorage::getSubStreamList | ( | unsigned | ind = 0, |  
          |  |  | bool | all = false |  
          |  | ) |  |  |  | inline | 
 
 
◆ insertData()
  
  | 
        
          | unsigned librevenge::OStorage::insertData | ( | unsigned char const * | buffer, |  
          |  |  | unsigned long | len, |  
          |  |  | bool | useBigBlock, |  
          |  |  | unsigned | end = Eof |  
          |  | ) |  |  |  | protected | 
 
add stream data in a file, returns the first index 
 
 
◆ newBBlock()
  
  | 
        
          | unsigned librevenge::OStorage::newBBlock | ( |  | ) |  |  | inlineprotected | 
 
create a new big block, resize m_data; ... and return is identifier 
Referenced by newSBlock().
 
 
◆ newSBlock()
  
  | 
        
          | unsigned librevenge::OStorage::newSBlock | ( |  | ) |  |  | inlineprotected | 
 
create a new small block, ... and returns is identifier 
 
 
◆ operator=()
◆ setInformation()
  
  | 
        
          | void librevenge::OStorage::setInformation | ( | std::string const & | name, |  
          |  |  | DirInfo const & | info |  
          |  | ) |  |  |  | inline | 
 
 
◆ setRevision()
  
  | 
        
          | void librevenge::OStorage::setRevision | ( | unsigned | rev | ) |  |  | inline | 
 
 
◆ setRootType()
  
  | 
        
          | void librevenge::OStorage::setRootType | ( | bool | pc | ) |  |  | inline | 
 
 
◆ updateToSave()
  
  | 
        
          | bool librevenge::OStorage::updateToSave | ( |  | ) |  |  | protected | 
 
finish to update the file ( note: it is better to call this function only one time ) 
Referenced by getFileData().
 
 
◆ useBigBlockFor()
  
  | 
        
          | bool librevenge::OStorage::useBigBlockFor | ( | unsigned long | size | ) | const |  | inlineprotected | 
 
return true if we need to use big block 
 
 
◆ m_bbat
◆ m_data
  
  | 
        
          | std::vector<unsigned char> librevenge::OStorage::m_data |  | protected | 
 
 
◆ m_dirtree
  
  | 
        
          | DirTree librevenge::OStorage::m_dirtree |  | protected | 
 
 
◆ m_header
  
  | 
        
          | Header librevenge::OStorage::m_header |  | protected | 
 
 
◆ m_num_bbat
  
  | 
        
          | unsigned librevenge::OStorage::m_num_bbat |  | protected | 
 
 
◆ m_num_sbat
  
  | 
        
          | unsigned librevenge::OStorage::m_num_sbat |  | protected | 
 
 
◆ m_sb_blocks
  
  | 
        
          | std::vector<unsigned long> librevenge::OStorage::m_sb_blocks |  | protected | 
 
 
◆ m_sbat
The documentation for this class was generated from the following file: