Blender V5.3
blender::WriteData Struct Reference

#include <writefile.hh>

Classes

struct  [struct].buffer
struct  [struct].validation_data

Public Attributes

const SDNA * sdna
std::ostream * debug_dst = nullptr
struct  buffer
bool is_writing_id
struct  validation_data
WriteDataStableAddressIDs stable_address_ids
Set< const void * > per_id_written_shared_addresses
MemFileWriteData mem
bool use_memfile
WriteWrap * ww
std::string filepath
double timestamp_init

Detailed Description

Definition at line 79 of file writefile.hh.

Member Data Documentation

◆ buffer

◆ debug_dst

std::ostream* blender::WriteData::debug_dst = nullptr

◆ filepath

std::string blender::WriteData::filepath

Filepath being written to, may be the empty string.

Definition at line 145 of file writefile.hh.

Referenced by blender::write_file_handle().

◆ is_writing_id

bool blender::WriteData::is_writing_id

Whether writefile code is currently writing an ID.

Definition at line 101 of file writefile.hh.

Referenced by blender::mywrite_id_begin(), blender::mywrite_id_end(), and blender::write_at_address_validate().

◆ mem

MemFileWriteData blender::WriteData::mem

◆ per_id_written_shared_addresses

Set<const void *> blender::WriteData::per_id_written_shared_addresses

Keeps track of which shared data has been written for the current ID. This is necessary to avoid writing the same data more than once.

Definition at line 130 of file writefile.hh.

Referenced by blender::mywrite_id_end().

◆ sdna

const SDNA* blender::WriteData::sdna

◆ stable_address_ids

WriteDataStableAddressIDs blender::WriteData::stable_address_ids

Data to generate stable fake pointer values in written blendfile.

Note
For undo steps, a partial copy of this data is stored in the written MemFile at the end of the writing, and used to initialize this data on the next undo step writing (see BLO_memfile_write_init and BLO_memfile_write_finalize).

Definition at line 124 of file writefile.hh.

Referenced by blender::BlendStructWriterVoid::generated_ptr(), blender::get_address_id_for_undo(), blender::get_address_id_int(), blender::get_next_stable_address_id(), blender::mywrite_id_begin(), blender::mywrite_id_end(), blender::prepare_stable_data_block_ids(), blender::writedata_new(), and blender::writestruct_at_address_nr().

◆ timestamp_init

double blender::WriteData::timestamp_init

Timestamp info defined when creating the new WriteData. Used for performance logging.

Definition at line 150 of file writefile.hh.

Referenced by blender::mywrite_end(), and blender::writedata_new().

◆ use_memfile

◆ validation_data

◆ ww

WriteWrap* blender::WriteData::ww

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

Definition at line 142 of file writefile.hh.

Referenced by blender::writedata_do_write(), and blender::writedata_new().


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