Blender V5.3
blender::MemFileChunk Struct Reference

#include <BLO_undofile.hh>

Public Attributes

void * next
void * prev
const char * buf
size_t size
bool is_identical
bool is_identical_future
uint id_session_uid

Detailed Description

Definition at line 34 of file BLO_undofile.hh.

Member Data Documentation

◆ buf

const char* blender::MemFileChunk::buf

◆ id_session_uid

uint blender::MemFileChunk::id_session_uid

Session UID of the ID being currently written (MAIN_ID_SESSION_UID_UNSET when not writing ID-related data). Used to find matching chunks in previous memundo step.

Definition at line 51 of file BLO_undofile.hh.

Referenced by blender::BLO_memfile_chunk_add(), blender::BLO_memfile_write_init(), blender::ED_undosys_stack_memfile_id_changed_tag(), and blender::mywrite_id_begin().

◆ is_identical

bool blender::MemFileChunk::is_identical

When true, this chunk doesn't own the memory, it's shared with a previous MemFileChunk

Definition at line 40 of file BLO_undofile.hh.

Referenced by blender::BLO_memfile_chunk_add(), blender::BLO_memfile_merge(), and blender::undo_read().

◆ is_identical_future

bool blender::MemFileChunk::is_identical_future

When true, this chunk is also identical to the one in the next step (used by undo code to detect unchanged IDs). Defined when writing the next step (i.e. last undo step has those always false).

Definition at line 46 of file BLO_undofile.hh.

Referenced by blender::BLO_memfile_chunk_add(), blender::BLO_memfile_clear_future(), blender::ED_undosys_stack_memfile_id_changed_tag(), and blender::undo_read().

◆ next

void* blender::MemFileChunk::next

Definition at line 35 of file BLO_undofile.hh.

Referenced by blender::BLO_memfile_chunk_add(), and blender::undo_read().

◆ prev

void * blender::MemFileChunk::prev

Definition at line 35 of file BLO_undofile.hh.

Referenced by blender::mywrite_id_begin().

◆ size

size_t blender::MemFileChunk::size

Size in bytes.

Definition at line 38 of file BLO_undofile.hh.

Referenced by blender::BLO_memfile_chunk_add(), and blender::undo_read().


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