Blender  V2.93
Public Attributes | List of all members
WriteData Struct Reference

Public Attributes

const struct SDNAsdna
 
ucharbuf
 
size_t buf_used_len
 
bool error
 
MemFileWriteData mem
 
bool use_memfile
 
WriteWrapww
 

Detailed Description

Definition at line 251 of file writefile.c.

Member Data Documentation

◆ buf

uchar* WriteData::buf

Use for file and memory writing (fixed size of MYWRITE_BUFFER_SIZE).

Definition at line 255 of file writefile.c.

Referenced by mywrite(), mywrite_end(), mywrite_flush(), writedata_free(), and writedata_new().

◆ buf_used_len

size_t WriteData::buf_used_len

Number of bytes used in WriteData.buf (flushed when exceeded).

Definition at line 257 of file writefile.c.

Referenced by mywrite(), mywrite_end(), and mywrite_flush().

◆ error

bool WriteData::error

Set on unlikely case of an error (ignores further file writing).

Definition at line 265 of file writefile.c.

Referenced by mywrite(), mywrite_end(), and writedata_do_write().

◆ mem

MemFileWriteData WriteData::mem

MemFile writing (used for undo).

Definition at line 268 of file writefile.c.

Referenced by mywrite_begin(), mywrite_end(), mywrite_id_begin(), mywrite_id_end(), and writedata_do_write().

◆ sdna

const struct SDNA* WriteData::sdna

◆ use_memfile

bool WriteData::use_memfile

When true, write to #WriteData.current, could also call 'is_undo'.

Definition at line 270 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().

◆ ww

WriteWrap* WriteData::ww

Wrap writing, so we can use zlib or other compression types later, see: G_FILE_COMPRESS Will be NULL for UNDO.

Definition at line 277 of file writefile.c.

Referenced by writedata_do_write(), and writedata_new().


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