19extern const unsigned char DNAstr[];
78 const void *
data,
int data_len,
bool data_alloc,
bool do_alias,
const char **r_error_message);
83struct DNA_ReconstructInfo;
89 const struct SDNA *newsdna,
90 const char *compare_flags);
101 unsigned int *struct_index_last);
105 unsigned int *struct_index_last);
147 int old_struct_index,
149 const void *old_blocks,
150 const char *alloc_name,
151 int64_t *r_alloc_size =
nullptr);
234#ifdef DNA_GENFILE_VERSIONING_MACROS
235# define DNA_struct_exists(sdna, str) DNA_struct_exists_with_alias(sdna.get(), str)
236# define DNA_struct_member_exists(sdna, stype, vartype, name) \
237 DNA_struct_member_exists_with_alias(sdna.get(), stype, vartype, name)
const unsigned char DNAstr[]
struct DNA_ReconstructInfo * DNA_reconstruct_info_create(const struct SDNA *oldsdna, const struct SDNA *newsdna, const char *compare_flags)
int DNA_struct_member_offset_by_name_without_alias(const struct SDNA *sdna, StringRef stype, StringRef vartype, StringRef name)
bool DNA_sdna_patch_struct_member_by_name(struct SDNA *sdna, StringRef type_name, StringRef old_member_name, StringRef new_member_name)
bool DNA_sdna_patch_struct_by_name(struct SDNA *sdna, StringRef old_type_name, StringRef new_type_name)
void DNA_reconstruct_info_free(struct DNA_ReconstructInfo *reconstruct_info)
void * DNA_struct_reconstruct(const struct DNA_ReconstructInfo *reconstruct_info, int old_struct_index, int blocks, const void *old_blocks, const char *alloc_name, int64_t *r_alloc_size=nullptr)
int DNA_struct_member_size(const struct SDNA *sdna, short type, short member_index)
int DNA_elem_type_size(eSDNA_Type elem_nr)
bool DNA_struct_exists_without_alias(const struct SDNA *sdna, StringRef stype)
StringRef DNA_struct_identifier(struct SDNA *sdna, int struct_index)
int DNA_struct_find_index_without_alias_ex(const struct SDNA *sdna, StringRef str, unsigned int *struct_index_last)
const char * DNA_struct_get_compareflags(const struct SDNA *oldsdna, const struct SDNA *newsdna)
BMesh const char void * data
bool DNA_struct_member_exists_without_alias(const struct SDNA *sdna, StringRef stype, StringRef vartype, StringRef name)
int DNA_struct_size(const struct SDNA *sdna, int struct_index)
void DNA_sdna_alias_data_ensure_structs_map(struct SDNA *sdna)
int DNA_struct_find_with_alias(const struct SDNA *sdna, StringRef str)
int DNA_struct_find_index_without_alias(const struct SDNA *sdna, StringRef str)
bool DNA_struct_member_exists_with_alias(const struct SDNA *sdna, StringRef stype, StringRef vartype, StringRef name)
int DNA_struct_alignment(const struct SDNA *sdna, int struct_index)
void DNA_sdna_alias_data_ensure(struct SDNA *sdna)
const SDNA * DNA_sdna_current_get()
int DNA_struct_member_offset_by_name_with_alias(const struct SDNA *sdna, StringRef stype, StringRef vartype, StringRef name)
int DNA_struct_find_index_with_alias_ex(const struct SDNA *sdna, StringRef str, unsigned int *struct_index_last)
bool DNA_struct_exists_with_alias(const struct SDNA *sdna, StringRef str)
std::unique_ptr< SDNA > DNA_sdna_from_data(const void *data, int data_len, bool data_alloc, bool do_alias, const char **r_error_message)