1. 4FipS.com
  2. Photos
  3. Videos
  4. Code
  5. Forums
  6. pfQuizzz
  7. About
/*---{fips-meta:file-header:public}-------------------------------------*\
| o     _______ __         _______  _   ______           __            o |
|      |    ___|__|.-----.|     __|| | |      |.-----.--|  |.-----.      |
|      |    ___|  ||  _  ||__     ||_| |   ---||  _  |  _  ||  -__|      |
|      |___|   |__||   __||_______|    |______||_____|_____||_____|      |
|       FipS' CODE |__| > > > > > > > > > > > > > > > > > > > > > >      |
|    (c) 2004-13 +++ Filip Stoklas, aka FipS, http://www.4FipS.com +++   |
| o         THIS CODE IS FREE - LICENSED UNDER THE MIT LICENSE         o |
\*----------------------------------------------------------------------*/
#ifndef FS_HEADER__sources__fs_2_bundle__bu_directory_blob_h__GUARD
#define FS_HEADER__sources__fs_2_bundle__bu_directory_blob_h__GUARD

#include "bu_config.h"

namespace fs { namespace bundle { namespace blob { namespace directory {

using namespace fo::blob;

struct Header
{
    Uint8 version;
    Uint8 reserved0[7];
};

struct File
{
    Uint32 fname_offset;
    Uint32 fname_length;
};

struct Filelist
{
    Uint32 num_files;
    File files[1];
};

struct Filenames
{
    char data[1];
};

struct Directory
{
    Blob blob;
    Block header_block;
    Block filelist_block;
    Block filenames_block;
    // [header]
    // [filelist]
    // [filenames]
};

}}}} // namespace fs::bundle::blob::directory

#endif // FS_HEADER__sources__fs_2_bundle__bu_directory_blob_h__GUARD