CWB
|
The MemBlob object. More...
#include <storage.h>
The MemBlob object.
This object, unsurprisingly, represents a blob of memory.
the allocation method
Referenced by alloc_mblob(), creat_rev_corpus_idx(), init_mblob(), mfree(), read_file_into_blob(), and write_file_from_blob().
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 |
pointer to the data
Referenced by alloc_mblob(), cl_alg2cpos(), cl_cpos2alg(), cl_cpos2alg2cpos_oldstyle(), cl_cpos2id(), cl_cpos2struc2cpos(), cl_cpos2struc_oldstyle(), cl_id2cpos_oldstyle(), cl_id2freq(), cl_id2str(), cl_id2strlen(), cl_new_stream(), cl_regex2id(), cl_sort2id(), cl_str2id(), cl_struc2cpos(), cl_struc2str(), comp_component_state(), creat_freqs(), creat_rev_corpus(), creat_rev_corpus_idx(), creat_sort_lexicon(), create_component(), init_mblob(), load_component(), mfree(), read_file_into_blob(), scompare(), validate_revcorp(), and write_file_from_blob().
char* fname |
Referenced by alloc_mblob(), creat_rev_corpus_idx(), init_mblob(), and mfree().
off_t fsize |
Referenced by alloc_mblob(), creat_rev_corpus_idx(), and init_mblob().
int item_size |
the size of one item
Referenced by alloc_mblob(), creat_rev_corpus_idx(), creat_sort_lexicon(), init_mblob(), and read_file_into_blob().
unsigned int nr_items |
the number of items represented
Referenced by alloc_mblob(), creat_rev_corpus_idx(), creat_sort_lexicon(), init_mblob(), load_component(), and read_file_into_blob().
off_t offset |
Referenced by alloc_mblob(), creat_rev_corpus_idx(), and init_mblob().
size_t size |
the number of allocated bytes
Referenced by alloc_mblob(), creat_freqs(), creat_rev_corpus_idx(), creat_sort_lexicon(), init_mblob(), mfree(), read_file_into_blob(), and write_file_from_blob().
int writeable |
can we write to the data?
Referenced by alloc_mblob(), creat_rev_corpus_idx(), init_mblob(), and read_file_into_blob().