Blender V5.0
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 29 of file BLO_undofile.hh.

Member Data Documentation

◆ buf

const char* MemFileChunk::buf

Definition at line 31 of file BLO_undofile.hh.

Referenced by BLO_memfile_chunk_add(), and undo_read().

◆ id_session_uid

uint 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 42 of file BLO_undofile.hh.

Referenced by BLO_memfile_chunk_add(), and mywrite_id_begin().

◆ is_identical

bool MemFileChunk::is_identical

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

Definition at line 35 of file BLO_undofile.hh.

Referenced by BLO_memfile_chunk_add(), and undo_read().

◆ is_identical_future

bool 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 39 of file BLO_undofile.hh.

Referenced by BLO_memfile_chunk_add(), and undo_read().

◆ next

void* MemFileChunk::next

Definition at line 30 of file BLO_undofile.hh.

Referenced by BLO_memfile_chunk_add(), and undo_read().

◆ prev

void * MemFileChunk::prev

Definition at line 30 of file BLO_undofile.hh.

Referenced by mywrite_id_begin().

◆ size

size_t MemFileChunk::size

Size in bytes.

Definition at line 33 of file BLO_undofile.hh.

Referenced by BLO_memfile_chunk_add(), and undo_read().


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