|
Blender
V2.59
|
blenloader genfile private function prototypes More...
Go to the source code of this file.
Functions | |
| struct SDNA * | DNA_sdna_from_data (void *data, int datalen, int do_endian_swap) |
| void | DNA_sdna_free (struct SDNA *sdna) |
| int | DNA_struct_find_nr (struct SDNA *sdna, const char *str) |
| void | DNA_struct_switch_endian (struct SDNA *oldsdna, int oldSDNAnr, char *data) |
| char * | DNA_struct_get_compareflags (struct SDNA *sdna, struct SDNA *newsdna) |
| void * | DNA_struct_reconstruct (struct SDNA *newsdna, struct SDNA *oldsdna, char *compflags, int oldSDNAnr, int blocks, void *data) |
| int | DNA_elem_array_size (const char *astr, int len) |
| int | DNA_elem_offset (struct SDNA *sdna, const char *stype, const char *vartype, const char *name) |
Variables | |
| unsigned char | DNAstr [] |
| int | DNAlen |
blenloader genfile private function prototypes
Definition in file DNA_genfile.h.
| int DNA_elem_array_size | ( | const char * | astr, |
| int | len | ||
| ) |
Definition at line 170 of file dna_genfile.c.
References mul(), NULL, and str.
Referenced by cast_elem(), cast_pointer(), DNA_struct_switch_endian(), elementsize(), reconstruct_elem(), reconstruct_struct(), and rna_find_sdna_member().
| int DNA_elem_offset | ( | struct SDNA * | sdna, |
| const char * | stype, | ||
| const char * | vartype, | ||
| const char * | name | ||
| ) |
Definition at line 1110 of file dna_genfile.c.
References DNA_struct_find_nr(), find_elem(), NULL, and SDNA::structs.
Referenced by read_file_dna().
| void DNA_sdna_free | ( | struct SDNA * | sdna | ) |
Definition at line 194 of file dna_genfile.c.
References SDNA::data, MEM_freeN(), SDNA::names, SDNA::structs, and SDNA::types.
Referenced by blo_freefiledata(), RNA_define_free(), and writedata_free().
| struct SDNA* DNA_sdna_from_data | ( | void * | data, |
| int | datalen, | ||
| int | do_endian_swap | ||
| ) | [read] |
Definition at line 487 of file dna_genfile.c.
References SDNA::data, SDNA::datalen, init_structDNA(), SDNA::lastfind, and MEM_mallocN().
Referenced by filedata_new(), read_file_dna(), RNA_create(), and writedata_new().
| int DNA_struct_find_nr | ( | struct SDNA * | sdna, |
| const char * | str | ||
| ) |
Definition at line 275 of file dna_genfile.c.
References SDNA::lastfind, SDNA::nr_structs, NULL, SDNA::structs, and SDNA::types.
Referenced by BLO_blendhandle_get_previews(), DNA_elem_offset(), DNA_struct_reconstruct(), DNA_struct_switch_endian(), reconstruct_struct(), RNA_def_struct_sdna(), RNA_def_struct_sdna_from(), rna_find_sdna_member(), and writestruct().
Definition at line 546 of file dna_genfile.c.
References findstruct_name(), ispointer(), MEM_callocN(), SDNA::names, SDNA::nr_structs, NULL, SDNA::pointerlen, recurs_test_compflags(), SDNA::structs, SDNA::typelens, and SDNA::types.
Referenced by read_file_dna().
| void* DNA_struct_reconstruct | ( | struct SDNA * | newsdna, |
| struct SDNA * | oldsdna, | ||
| char * | compflags, | ||
| int | oldSDNAnr, | ||
| int | blocks, | ||
| void * | data | ||
| ) |
Definition at line 1077 of file dna_genfile.c.
References DNA_struct_find_nr(), MEM_callocN(), NULL, reconstruct_struct(), SDNA::structs, SDNA::typelens, and SDNA::types.
Referenced by read_struct().
| void DNA_struct_switch_endian | ( | struct SDNA * | oldsdna, |
| int | oldSDNAnr, | ||
| char * | data | ||
| ) |
Definition at line 972 of file dna_genfile.c.
References DNA_elem_array_size(), DNA_struct_find_nr(), DNA_struct_switch_endian(), elementsize(), find_elem(), ispointer(), mul(), SDNA::names, NULL, SDNA::pointerlen, SDNA::structs, and SDNA::types.
Referenced by DNA_struct_switch_endian(), and switch_endian_structs().
| int DNAlen |
Referenced by filedata_new(), RNA_create(), and writedata_new().
| unsigned char DNAstr[] |
Referenced by filedata_new(), RNA_create(), and writedata_new().