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

#include <DNA_sdna_types.h>

Public Attributes

const char * data
 
int data_len
 
bool data_alloc
 
int names_len
 
int names_len_alloc
 
const char ** names
 
short * names_array_len
 
int pointer_size
 
const char ** types
 
int types_len
 
short * types_size
 
SDNA_Struct ** structs
 
int structs_len
 
struct GHashstructs_map
 
struct MemArenamem_arena
 
struct {
   const char **   names
 
   const char **   types
 
   struct GHash *   structs_map
 
alias
 

Detailed Description

Definition at line 41 of file DNA_sdna_types.h.

Member Data Documentation

◆ 

struct { ... } SDNA::alias

◆ data

const char* SDNA::data

Full copy of 'encoded' data (when data_alloc is set, otherwise borrowed).

Definition at line 43 of file DNA_sdna_types.h.

Referenced by DNA_sdna_free(), DNA_sdna_from_data(), init_structDNA(), and write_file_handle().

◆ data_alloc

bool SDNA::data_alloc

Definition at line 46 of file DNA_sdna_types.h.

Referenced by DNA_sdna_free(), and DNA_sdna_from_data().

◆ data_len

int SDNA::data_len

Length of data.

Definition at line 45 of file DNA_sdna_types.h.

Referenced by DNA_sdna_from_data(), and write_file_handle().

◆ mem_arena

struct MemArena* SDNA::mem_arena

Temporary memory currently only used for version patching DNA.

Definition at line 75 of file DNA_sdna_types.h.

Referenced by DNA_sdna_alias_data_ensure(), dna_sdna_alias_from_static_elem_full(), DNA_sdna_free(), DNA_sdna_patch_struct_member_nr(), init_structDNA(), and sdna_expand_names().

◆ names

const char** SDNA::names

◆ names_array_len

short* SDNA::names_array_len

◆ names_len

int SDNA::names_len

Total number of struct members.

Definition at line 49 of file DNA_sdna_types.h.

Referenced by DNA_sdna_alias_data_ensure(), DNA_sdna_patch_struct_member_nr(), init_structDNA(), and sdna_expand_names().

◆ names_len_alloc

int SDNA::names_len_alloc

Definition at line 49 of file DNA_sdna_types.h.

Referenced by DNA_sdna_patch_struct_member_nr(), and init_structDNA().

◆ pointer_size

int SDNA::pointer_size

◆ structs

SDNA_Struct** SDNA::structs

◆ structs_len

int SDNA::structs_len

◆ structs_map

struct GHash* SDNA::structs_map

GHash for faster lookups, requires WITH_DNA_GHASH to be used for now.

A version of SDNA.structs_map that uses #SDNA.alias.types for its keys.

Definition at line 72 of file DNA_sdna_types.h.

Referenced by DNA_sdna_alias_data_ensure_structs_map(), DNA_sdna_free(), DNA_sdna_patch_struct_nr(), DNA_struct_alias_find_nr_ex(), DNA_struct_find_nr_ex(), and init_structDNA().

◆ types

const char** SDNA::types

◆ types_len

int SDNA::types_len

Number of basic types + struct types.

Definition at line 61 of file DNA_sdna_types.h.

Referenced by DNA_sdna_alias_data_ensure(), DNA_struct_alias_find_nr_ex(), DNA_struct_find_nr_ex(), and init_structDNA().

◆ types_size

short* SDNA::types_size

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