CWB
Data Fields
TMblob Struct Reference

The MemBlob object. More...

#include <storage.h>

Data Fields

size_t size
 the number of allocated bytes More...
 
int item_size
 the size of one item More...
 
unsigned int nr_items
 the number of items represented More...
 
int * data
 pointer to the data More...
 
int allocation_method
 the allocation method More...
 
int writeable
 can we write to the data? More...
 
int changed
 needs update? (not yet in use) More...
 
char * fname
 
off_t fsize
 
off_t offset
 

Detailed Description

The MemBlob object.

This object, unsurprisingly, represents a blob of memory.

Field Documentation

int allocation_method
int changed

needs update? (not yet in use)

Referenced by alloc_mblob(), creat_rev_corpus_idx(), init_mblob(), read_file_into_blob(), and write_file_from_blob().

int* data
char* fname
off_t fsize
int item_size
unsigned int nr_items
off_t offset
size_t size
int writeable

can we write to the data?

Referenced by alloc_mblob(), creat_rev_corpus_idx(), init_mblob(), and read_file_into_blob().


The documentation for this struct was generated from the following file: