|
Blender
V2.93
|
#include <readfile.h>
Public Attributes | |
| ListBase | bhead_list |
| enum eFileDataFlag | flags |
| bool | is_eof |
| size_t | buffersize |
| off64_t | file_offset |
| FileDataReadFn * | read |
| FileDataSeekFn * | seek |
| int | filedes |
| const char * | buffer |
| struct BLI_mmap_file * | mmap_file |
| struct MemFile * | memfile |
| int | undo_direction |
| gzFile | gzfiledes |
| z_stream | strm |
| char | relabase [FILE_MAX] |
| struct SDNA * | filesdna |
| const struct SDNA * | memsdna |
| const char * | compflags |
| struct DNA_ReconstructInfo * | reconstruct_info |
| int | fileversion |
| int | id_name_offset |
| int | id_asset_data_offset |
| int | globalf |
| int | fileflags |
| eBLOReadSkip | skip_flags |
| int | id_tag_extra |
| struct OldNewMap * | datamap |
| struct OldNewMap * | globmap |
| struct OldNewMap * | libmap |
| struct OldNewMap * | packedmap |
| struct BLOCacheStorage * | cache_storage |
| struct BHeadSort * | bheadmap |
| int | tot_bheadmap |
| struct GHash * | bhead_idname_hash |
| ListBase * | mainlist |
| ListBase * | old_mainlist |
| struct IDNameLib_Map * | old_idmap |
| struct ReportList * | reports |
| int | library_file_missing_count |
| int | library_id_missing_count |
Definition at line 73 of file readfile.h.
| struct GHash* FileData::bhead_idname_hash |
See: USE_GHASH_BHEAD.
Definition at line 141 of file readfile.h.
Referenced by blo_filedata_free(), find_bhead_from_code_name(), find_bhead_from_idname(), and read_file_bhead_idname_map_create().
| ListBase FileData::bhead_list |
Linked list of BHeadN's.
Definition at line 75 of file readfile.h.
Referenced by blo_bhead_first(), blo_filedata_free(), and get_bhead().
| struct BHeadSort* FileData::bheadmap |
Definition at line 137 of file readfile.h.
Referenced by blo_filedata_free(), find_bhead(), and sort_bhead_old_map().
| const char* FileData::buffer |
Variables needed for reading from memory / stream / memory-mapped files.
Definition at line 88 of file readfile.h.
Referenced by blo_filedata_free(), blo_filedata_from_memory(), fd_read_from_memory(), and fd_read_gzip_from_memory_init().
| size_t FileData::buffersize |
Definition at line 78 of file readfile.h.
Referenced by blo_filedata_from_file_descriptor(), blo_filedata_from_memory(), fd_read_from_memory(), fd_read_from_mmap(), fd_read_gzip_from_memory_init(), and fd_seek_from_mmap().
| struct BLOCacheStorage* FileData::cache_storage |
Definition at line 135 of file readfile.h.
Referenced by blo_cache_storage_end(), blo_cache_storage_init(), blo_cache_storage_old_bmain_clear(), and direct_link_id().
| const char* FileData::compflags |
Array of eSDNA_StructCompare.
Definition at line 108 of file readfile.h.
Referenced by blo_filedata_free(), read_file_dna(), and read_struct().
| struct OldNewMap* FileData::datamap |
Definition at line 131 of file readfile.h.
Referenced by blo_filedata_free(), blo_read_asset_data_block(), filedata_new(), newdataadr(), newdataadr_no_us(), newpackedadr(), read_data_into_datamap(), read_libblock(), and read_userdef().
| off64_t FileData::file_offset |
Definition at line 79 of file readfile.h.
Referenced by blo_bhead_read_data(), fd_read_data_from_file(), fd_read_from_memfile(), fd_read_from_memory(), fd_read_from_mmap(), fd_read_gzip_from_file(), fd_read_gzip_from_memory(), fd_seek_data_from_file(), fd_seek_from_mmap(), and get_bhead().
| int FileData::filedes |
Regular file reading.
Definition at line 85 of file readfile.h.
Referenced by blo_filedata_free(), blo_filedata_from_file_descriptor(), blo_filedata_from_file_open(), fd_read_data_from_file(), fd_seek_data_from_file(), and filedata_new().
| int FileData::fileflags |
Definition at line 118 of file readfile.h.
Referenced by read_global().
| struct SDNA* FileData::filesdna |
General reading variables.
Definition at line 105 of file readfile.h.
Referenced by BLO_blendhandle_get_previews(), BLO_blendhandle_print_sizes(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_290(), blo_filedata_free(), BLO_read_pointer_array(), read_data_into_datamap(), read_file_dna(), and read_struct().
| int FileData::fileversion |
Definition at line 111 of file readfile.h.
Referenced by blo_read_file_internal(), decode_blender_header(), read_file_dna(), read_global(), and read_library_file_data().
| enum eFileDataFlag FileData::flags |
Definition at line 75 of file readfile.h.
Referenced by blo_decode_and_check(), blo_filedata_free(), blo_filedata_from_file_minimal(), blo_filedata_from_memfile(), blo_filedata_from_memory(), BLO_read_requires_endian_switch(), decode_blender_header(), get_bhead(), read_file_dna(), read_file_thumbnail(), and read_struct().
| int FileData::globalf |
| struct OldNewMap* FileData::globmap |
Definition at line 132 of file readfile.h.
Referenced by blo_filedata_free(), BLO_read_data_globmap_add(), blo_read_get_new_globaldata_address(), filedata_new(), and link_glob_list().
| gzFile FileData::gzfiledes |
Variables needed for reading from file.
Definition at line 97 of file readfile.h.
Referenced by blo_filedata_free(), blo_filedata_from_file_descriptor(), fd_read_gzip_from_file(), and filedata_new().
| int FileData::id_asset_data_offset |
Used to retrieve asset data from (bhead+1). NOTE: This may not be available in old files, will be -1 then!
Definition at line 116 of file readfile.h.
Referenced by blo_bhead_id_asset_data_address(), and read_file_dna().
| int FileData::id_name_offset |
Used to retrieve ID names from (bhead+1).
Definition at line 113 of file readfile.h.
Referenced by blo_bhead_id_name(), and read_file_dna().
| int FileData::id_tag_extra |
Tag to apply to all loaded ID data-blocks.
Definition at line 129 of file readfile.h.
Referenced by expand_doit_library(), and link_named_part().
| bool FileData::is_eof |
Definition at line 77 of file readfile.h.
Referenced by get_bhead().
| struct OldNewMap* FileData::libmap |
Definition at line 133 of file readfile.h.
Referenced by blo_add_library_pointer_map(), blo_do_versions_pre250(), blo_filedata_free(), change_link_placeholder_to_real_ID_pointer_fd(), expand_doit_library(), filedata_new(), link_named_part(), newlibadr(), read_libblock(), read_libblock_undo_restore(), read_libblock_undo_restore_linked(), and read_library_file_data().
| int FileData::library_file_missing_count |
Definition at line 151 of file readfile.h.
Referenced by read_libraries(), and read_library_file_data().
| int FileData::library_id_missing_count |
Definition at line 152 of file readfile.h.
Referenced by read_libraries(), and read_library_linked_id().
| ListBase* FileData::mainlist |
Definition at line 143 of file readfile.h.
Referenced by blo_find_main(), blo_read_file_internal(), direct_link_library(), library_link_end(), read_libblock_undo_restore_library(), and read_library_file_data().
| struct MemFile* FileData::memfile |
Variables needed for reading from memfile (undo).
Definition at line 91 of file readfile.h.
Referenced by blo_cache_storage_init(), blo_filedata_from_memfile(), BLO_read_data_is_undo(), blo_read_file_internal(), BLO_read_lib_is_undo(), fd_read_from_memfile(), find_previous_lib(), lib_link_all(), peek_struct_undo(), and read_libblock().
| const struct SDNA* FileData::memsdna |
Definition at line 106 of file readfile.h.
Referenced by BLO_read_pointer_array(), filedata_new(), and read_file_dna().
| struct BLI_mmap_file* FileData::mmap_file |
Definition at line 89 of file readfile.h.
Referenced by blo_filedata_free(), blo_filedata_from_file_descriptor(), and fd_read_from_mmap().
| struct IDNameLib_Map* FileData::old_idmap |
Definition at line 146 of file readfile.h.
Referenced by blo_filedata_free(), blo_make_old_idmap_from_main(), and read_libblock_undo_restore().
| ListBase* FileData::old_mainlist |
Used for undo.
Definition at line 145 of file readfile.h.
Referenced by blo_add_library_pointer_map(), read_libblock_undo_restore_at_old_address(), read_libblock_undo_restore_identical(), and read_libblock_undo_restore_library().
| struct OldNewMap* FileData::packedmap |
Definition at line 134 of file readfile.h.
Referenced by blo_end_packed_pointer_map(), blo_filedata_free(), blo_make_packed_pointer_map(), insert_packedmap(), and newpackedadr().
| FileDataReadFn* FileData::read |
Definition at line 81 of file readfile.h.
Referenced by blo_bhead_read_data(), blo_filedata_from_file_descriptor(), blo_filedata_from_memfile(), blo_filedata_from_memory(), decode_blender_header(), fd_read_gzip_from_memory_init(), and get_bhead().
| struct DNA_ReconstructInfo* FileData::reconstruct_info |
Definition at line 109 of file readfile.h.
Referenced by blo_filedata_free(), read_file_dna(), and read_struct().
| char FileData::relabase[FILE_MAX] |
Now only in use for library appending.
Definition at line 102 of file readfile.h.
Referenced by blo_decode_and_check(), blo_filedata_from_file(), blo_read_file_internal(), BLO_read_from_memfile(), direct_link_library(), do_versions(), expand_doit_library(), read_global(), and read_library_file_data().
| struct ReportList* FileData::reports |
Definition at line 148 of file readfile.h.
Referenced by blo_do_versions_280(), BLO_read_data_reports(), blo_read_file_internal(), BLO_read_from_file(), BLO_read_from_memfile(), BLO_read_from_memory(), BLO_read_lib_reports(), direct_link_library(), expand_doit_library(), read_libraries(), read_library_file_data(), and read_library_linked_id().
| FileDataSeekFn* FileData::seek |
Definition at line 82 of file readfile.h.
Referenced by blo_bhead_read_data(), blo_filedata_free(), blo_filedata_from_file_descriptor(), and get_bhead().
| eBLOReadSkip FileData::skip_flags |
Optionally skip some data-blocks when they're not needed.
Definition at line 121 of file readfile.h.
Referenced by blo_read_file_internal(), BLO_read_from_file(), BLO_read_from_memfile(), BLO_read_from_memory(), direct_link_id_common(), lib_link_all(), read_libblock_undo_restore(), read_libblock_undo_restore_at_old_address(), and read_libblock_undo_restore_identical().
| z_stream FileData::strm |
Gzip stream for memory decompression.
Definition at line 99 of file readfile.h.
Referenced by blo_filedata_free(), fd_read_gzip_from_memory(), and fd_read_gzip_from_memory_init().
| int FileData::tot_bheadmap |
Definition at line 138 of file readfile.h.
Referenced by find_bhead(), and sort_bhead_old_map().
| int FileData::undo_direction |
Whether we are undoing (< 0) or redoing (> 0), used to choose which 'unchanged' flag to use to detect unchanged data from memfile.
Definition at line 94 of file readfile.h.
Referenced by blo_filedata_from_memfile(), direct_link_id_restore_recalc(), and fd_read_from_memfile().