Blender V5.3

blenloader genfile private function prototypes More...

#include "intern/dna_utils.h"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Enumerations

enum  blender::eSDNA_Type {
  blender::SDNA_TYPE_CHAR = 0 , blender::SDNA_TYPE_UCHAR = 1 , blender::SDNA_TYPE_SHORT = 2 , blender::SDNA_TYPE_USHORT = 3 ,
  blender::SDNA_TYPE_INT = 4 , blender::SDNA_TYPE_FLOAT = 7 , blender::SDNA_TYPE_DOUBLE = 8 , blender::SDNA_TYPE_INT64 = 9 ,
  blender::SDNA_TYPE_UINT64 = 10 , blender::SDNA_TYPE_VOID = 11 , blender::SDNA_TYPE_INT8 = 12 , blender::SDNA_TYPE_RAW_DATA = 13
}
enum  blender::eSDNA_StructCompare { blender::SDNA_CMP_REMOVED = 0 , blender::SDNA_CMP_EQUAL = 1 , blender::SDNA_CMP_NOT_EQUAL = 2 , blender::SDNA_CMP_UNKNOWN = 3 }

Functions

std::unique_ptr< SDNA > blender::DNA_sdna_from_data (const void *data, int data_len, bool data_alloc, bool do_alias, const char **r_error_message)
const SDNA * blender::DNA_sdna_current_get ()
struct DNA_ReconstructInfo * blender::DNA_reconstruct_info_create (const struct SDNA *oldsdna, const struct SDNA *newsdna, const char *compare_flags)
void blender::DNA_reconstruct_info_free (struct DNA_ReconstructInfo *reconstruct_info)
int blender::DNA_struct_find_index_with_alias_ex (const struct SDNA *sdna, StringRef str, unsigned int *struct_index_last)
int blender::DNA_struct_find_index_without_alias_ex (const struct SDNA *sdna, StringRef str, unsigned int *struct_index_last)
int blender::DNA_struct_find_with_alias (const struct SDNA *sdna, StringRef str)
int blender::DNA_struct_find_index_without_alias (const struct SDNA *sdna, StringRef str)
bool blender::DNA_struct_exists_with_alias (const struct SDNA *sdna, StringRef str)
bool blender::DNA_struct_exists_without_alias (const struct SDNA *sdna, StringRef stype)
bool blender::DNA_struct_member_exists_with_alias (const struct SDNA *sdna, StringRef stype, StringRef vartype, StringRef name)
bool blender::DNA_struct_member_exists_without_alias (const struct SDNA *sdna, StringRef stype, StringRef vartype, StringRef name)
const char * blender::DNA_struct_get_compareflags (const struct SDNA *oldsdna, const struct SDNA *newsdna)
void * blender::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 blender::DNA_struct_member_offset_by_name_without_alias (const struct SDNA *sdna, StringRef stype, StringRef vartype, StringRef name)
int blender::DNA_struct_member_offset_by_name_with_alias (const struct SDNA *sdna, StringRef stype, StringRef vartype, StringRef name)
int blender::DNA_struct_member_size (const struct SDNA *sdna, short type, short member_index)
int blender::DNA_elem_type_size (eSDNA_Type elem_nr)
int blender::DNA_struct_size (const struct SDNA *sdna, int struct_index)
int blender::DNA_struct_alignment (const struct SDNA *sdna, int struct_index)
StringRef blender::DNA_struct_identifier (struct SDNA *sdna, int struct_index)
Version Patch DNA
bool blender::DNA_sdna_patch_struct_by_name (struct SDNA *sdna, StringRef old_type_name, StringRef new_type_name)
bool blender::DNA_sdna_patch_struct_member_by_name (struct SDNA *sdna, StringRef type_name, StringRef old_member_name, StringRef new_member_name)
Versioning (Forward Compatible)

Versioning that allows new names.

void blender::DNA_sdna_alias_data_ensure (struct SDNA *sdna)
void blender::DNA_sdna_alias_data_ensure_structs_map (struct SDNA *sdna)

Variables

const unsigned char DNAstr []
const int DNAlen

Detailed Description

blenloader genfile private function prototypes

Definition in file DNA_genfile.h.

Variable Documentation

◆ DNAlen

const int DNAlen
extern

Length of DNAstr.

Referenced by blender::DNA_sdna_current_get().

◆ DNAstr

const unsigned char DNAstr[]
extern

DNAstr contains the prebuilt SDNA structure defining the layouts of the types used by this version of Blender. It is defined in a file dna.c, which is generated by the makesdna program during the build process (see makesdna.cc).

Referenced by blender::DNA_sdna_current_get().