Blender
V3.3
|
Public Attributes | |
const struct SDNA * | sdna |
struct { | |
uchar * buf | |
size_t used_len | |
size_t max_size | |
size_t chunk_size | |
} | buffer |
bool | error |
MemFileWriteData | mem |
bool | use_memfile |
WriteWrap * | ww |
Definition at line 397 of file writefile.c.
uchar* WriteData::buf |
Use for file and memory writing (size stored in max_size).
Definition at line 402 of file writefile.c.
Referenced by mywrite(), mywrite_end(), mywrite_flush(), writedata_free(), and writedata_new().
struct { ... } WriteData::buffer |
Referenced by mywrite(), mywrite_end(), mywrite_flush(), writedata_free(), and writedata_new().
size_t WriteData::chunk_size |
Threshold above which writes get their own chunk.
Definition at line 409 of file writefile.c.
Referenced by mywrite(), and writedata_new().
bool WriteData::error |
Set on unlikely case of an error (ignores further file writing).
Definition at line 418 of file writefile.c.
Referenced by mywrite(), mywrite_end(), and writedata_do_write().
size_t WriteData::max_size |
Maximum size of the buffer.
Definition at line 407 of file writefile.c.
Referenced by mywrite(), and writedata_new().
MemFileWriteData WriteData::mem |
MemFile writing (used for undo).
Definition at line 421 of file writefile.c.
Referenced by mywrite_begin(), mywrite_end(), mywrite_id_begin(), mywrite_id_end(), and writedata_do_write().
const struct SDNA* WriteData::sdna |
Definition at line 398 of file writefile.c.
Referenced by BLO_get_struct_id_by_name(), write_file_handle(), writedata_new(), and writestruct_at_address_nr().
bool WriteData::use_memfile |
When true, write to #WriteData.current, could also call 'is_undo'.
Definition at line 423 of file writefile.c.
Referenced by BLO_write_is_undo(), mywrite_begin(), mywrite_end(), mywrite_id_begin(), mywrite_id_end(), write_file_handle(), write_global(), write_libraries(), and writedata_do_write().
size_t WriteData::used_len |
Number of bytes used in WriteData.buf (flushed when exceeded).
Definition at line 404 of file writefile.c.
Referenced by mywrite(), mywrite_end(), and mywrite_flush().
WriteWrap* WriteData::ww |
Wrap writing, so we can use zstd or other compression types later, see: G_FILE_COMPRESS Will be NULL for UNDO.
Definition at line 430 of file writefile.c.
Referenced by writedata_do_write(), and writedata_new().