24#define CDF_ENDIAN_LITTLE 0
25#define CDF_ENDIAN_BIG 1
27#define CDF_DATA_FLOAT 0
63#define CDF_SUBVERSION 0
64#define CDF_TILE_SIZE 64
120 FILE *f = cdf->
readf;
130 if (memcmp(header->
ID,
"BCDF",
sizeof(header->
ID)) != 0) {
152 if (
BLI_fseek(f, offset, SEEK_SET) != 0) {
181 if (
BLI_fseek(f, offset, SEEK_SET) != 0) {
192 for (a = 0; a < header->
totlayer; a++) {
193 layer = &cdf->
layer[a];
209 if (
BLI_fseek(f, offset, SEEK_SET) != 0) {
247 for (a = 0; a < header->
totlayer; a++) {
248 layer = &cdf->
layer[a];
289 for (a = 0; a < cdf->
totlayer; a++) {
290 if (&cdf->
layer[a] == blay) {
317 cdf->
readf =
nullptr;
402 for (a = 0; a < cdf->
totlayer; a++) {
403 layer = &cdf->
layer[a];
422 cdf->
layer = newlayer;
#define CDF_LAYER_NAME_MAX
#define BLI_STATIC_ASSERT(a, msg)
File and directory operations.
FILE * BLI_fopen(const char *filepath, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
int BLI_delete(const char *path, bool dir, bool recursive) ATTR_NONNULL()
int BLI_fseek(FILE *stream, int64_t offset, int whence)
char * STRNCPY(char(&dst)[N], const char *src)
Read Guarded memory(de)allocation.
BMesh const char void * data
unsigned long long int uint64_t
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
void cdf_remove(const char *filepath)
CDataFile * cdf_create(int type)
bool cdf_read_layer(CDataFile *cdf, const CDataFileLayer *blay)
#define CDF_ENDIAN_LITTLE
bool cdf_write_open(CDataFile *cdf, const char *filepath)
static bool cdf_read_header(CDataFile *cdf)
bool cdf_read_data(CDataFile *cdf, uint size, void *data)
static bool cdf_write_header(CDataFile *cdf)
CDataFileLayer * cdf_layer_find(CDataFile *cdf, int type, const char *name)
void cdf_read_close(CDataFile *cdf)
CDataFileLayer * cdf_layer_add(CDataFile *cdf, int type, const char *name, size_t datasize)
bool cdf_write_data(CDataFile *cdf, uint size, const void *data)
void cdf_write_close(CDataFile *cdf)
void cdf_free(CDataFile *cdf)
bool cdf_read_open(CDataFile *cdf, const char *filepath)
bool cdf_write_layer(CDataFile *, CDataFileLayer *)
void * MEM_calloc_arrayN(size_t len, size_t size, const char *str)
void * MEM_callocN(size_t len, const char *str)
void MEM_freeN(void *vmemh)
char name[CDF_LAYER_NAME_MAX]
union CDataFile::@351045111137014237275261270114201234354061010141 btype
CDataFileImageHeader image