Blender  V3.3
Public Attributes | List of all members
WriteData Struct Reference

Public Attributes

const struct SDNAsdna
 
struct {
   uchar *   buf
 
   size_t   used_len
 
   size_t   max_size
 
   size_t   chunk_size
 
buffer
 
bool error
 
MemFileWriteData mem
 
bool use_memfile
 
WriteWrapww
 

Detailed Description

Definition at line 397 of file writefile.c.

Member Data Documentation

◆ buf

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

◆ chunk_size

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().

◆ error

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().

◆ max_size

size_t WriteData::max_size

Maximum size of the buffer.

Definition at line 407 of file writefile.c.

Referenced by mywrite(), and writedata_new().

◆ mem

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().

◆ 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 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().

◆ used_len

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().

◆ ww

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().


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