Blender
V3.3
|
#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 GHash * | structs_map |
struct MemArena * | mem_arena |
struct { | |
const char ** names | |
const char ** types | |
struct GHash * structs_map | |
} | alias |
Definition at line 41 of file DNA_sdna_types.h.
struct { ... } SDNA::alias |
Runtime versions of data stored in DNA, lazy initialized, only different when renaming is done.
Referenced by DNA_sdna_alias_data_ensure(), DNA_sdna_alias_data_ensure_structs_map(), DNA_sdna_free(), DNA_sdna_patch_struct_member_nr(), DNA_struct_alias_find_nr_ex(), elem_exists_alias(), init_structDNA(), and rna_find_sdna_member().
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().
bool SDNA::data_alloc |
Definition at line 46 of file DNA_sdna_types.h.
Referenced by DNA_sdna_free(), and DNA_sdna_from_data().
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().
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().
const char** SDNA::names |
Struct member names.
Aligned with SDNA.names, same pointers when unchanged.
Definition at line 51 of file DNA_sdna_types.h.
Referenced by DNA_elem_size_nr(), DNA_sdna_alias_data_ensure(), DNA_sdna_free(), DNA_sdna_patch_struct_member_nr(), elem_exists(), elem_exists_alias(), elem_offset(), find_member_with_matching_name(), get_member_size_in_bytes(), get_struct_member_category(), init_reconstruct_step_for_member(), init_structDNA(), rna_find_sdna_member(), sdna_expand_names(), and set_compare_flags_for_struct().
short* SDNA::names_array_len |
Result of DNA_elem_array_size (aligned with names).
Definition at line 53 of file DNA_sdna_types.h.
Referenced by DNA_elem_size_nr(), DNA_sdna_free(), DNA_sdna_patch_struct_member_nr(), DNA_struct_switch_endian(), get_member_size_in_bytes(), init_reconstruct_step_for_member(), init_structDNA(), and sdna_expand_names().
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().
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().
int SDNA::pointer_size |
Size of a pointer in bytes.
Definition at line 56 of file DNA_sdna_types.h.
Referenced by BLO_read_pointer_array(), DNA_elem_size_nr(), DNA_struct_switch_endian(), get_member_size_in_bytes(), init_reconstruct_step_for_member(), init_structDNA(), and set_compare_flags_for_struct().
SDNA_Struct** SDNA::structs |
Information about structs and their members.
Definition at line 67 of file DNA_sdna_types.h.
Referenced by BLO_blendhandle_print_sizes(), DNA_elem_offset(), DNA_reconstruct_info_create(), DNA_sdna_alias_data_ensure(), DNA_sdna_alias_data_ensure_structs_map(), DNA_sdna_free(), DNA_sdna_patch_struct_member_nr(), DNA_sdna_patch_struct_nr(), DNA_struct_alias_elem_find(), DNA_struct_alias_find_nr_ex(), DNA_struct_elem_find(), DNA_struct_find_nr_ex(), DNA_struct_get_compareflags(), DNA_struct_reconstruct(), DNA_struct_switch_endian(), init_structDNA(), print_reconstruct_step(), read_data_into_datamap(), reconstruct_structs(), rna_find_sdna_member(), sdna_expand_names(), set_compare_flags_for_struct(), switch_endian_structs(), and writestruct_at_address_nr().
int SDNA::structs_len |
Number of struct types.
Definition at line 69 of file DNA_sdna_types.h.
Referenced by DNA_reconstruct_info_create(), DNA_reconstruct_info_free(), DNA_sdna_alias_data_ensure(), DNA_sdna_alias_data_ensure_structs_map(), DNA_struct_alias_find_nr_ex(), DNA_struct_find_nr_ex(), DNA_struct_get_compareflags(), init_structDNA(), and sdna_expand_names().
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().
const char** SDNA::types |
Type names.
Aligned with SDNA.types, same pointers when unchanged.
Definition at line 59 of file DNA_sdna_types.h.
Referenced by BLO_blendhandle_print_sizes(), DNA_reconstruct_info_create(), DNA_sdna_alias_data_ensure(), 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(), DNA_struct_get_compareflags(), DNA_struct_reconstruct(), DNA_struct_switch_endian(), elem_exists(), elem_exists_alias(), elem_offset(), get_struct_member_category(), init_reconstruct_step_for_member(), init_structDNA(), print_reconstruct_step(), read_data_into_datamap(), rna_find_sdna_member(), and set_compare_flags_for_struct().
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().
short* SDNA::types_size |
Type lengths.
Definition at line 64 of file DNA_sdna_types.h.
Referenced by DNA_elem_size_nr(), DNA_struct_reconstruct(), DNA_struct_switch_endian(), get_member_size_in_bytes(), init_reconstruct_step_for_member(), init_structDNA(), print_reconstruct_step(), reconstruct_structs(), set_compare_flags_for_struct(), switch_endian_structs(), and writestruct_at_address_nr().