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