Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/readfile.h
| Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | typedef struct FileData { | ||||
| /** Regular file reading. */ | /** Regular file reading. */ | ||||
| int filedes; | int filedes; | ||||
| /** Variables needed for reading from memory / stream. */ | /** Variables needed for reading from memory / stream. */ | ||||
| const char *buffer; | const char *buffer; | ||||
| /** Variables needed for reading from memfile (undo). */ | /** Variables needed for reading from memfile (undo). */ | ||||
| struct MemFile *memfile; | struct MemFile *memfile; | ||||
| /** Whether all data read from memfile so far was identical | |||||
| * (i.e. shared with some previous undo step). | |||||
| * Updated by `fd_read_from_memfile()`, user is responsible to reset it to true when needed. | |||||
| * Used to detect unchanged IDs. */ | |||||
| bool are_memchunks_identical; | |||||
| /** Whether we are undoing (< 0) or redoing (> 0), used to choose which 'unchanged' flag to use | /** Whether we are undoing (< 0) or redoing (> 0), used to choose which 'unchanged' flag to use | ||||
| * to detect unchanged data from memfile. */ | * to detect unchanged data from memfile. */ | ||||
| short undo_direction; | short undo_direction; | ||||
| /** Variables needed for reading from file. */ | /** Variables needed for reading from file. */ | ||||
| gzFile gzfiledes; | gzFile gzfiledes; | ||||
| /** Gzip stream for memory decompression. */ | /** Gzip stream for memory decompression. */ | ||||
| z_stream strm; | z_stream strm; | ||||
| ▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines | |||||