Blender V5.0
BKE_customdata_file.h File Reference
#include <stddef.h>

Go to the source code of this file.

Macros

#define CDF_TYPE_IMAGE   0
#define CDF_TYPE_MESH   1
#define CDF_LAYER_NAME_MAX   64

Typedefs

typedef struct CDataFile CDataFile
typedef struct CDataFileLayer CDataFileLayer

Functions

CDataFilecdf_create (int type)
void cdf_free (CDataFile *cdf)
bool cdf_read_open (CDataFile *cdf, const char *filepath)
bool cdf_read_layer (CDataFile *cdf, const CDataFileLayer *blay)
bool cdf_read_data (CDataFile *cdf, unsigned int size, void *data)
void cdf_read_close (CDataFile *cdf)
bool cdf_write_open (CDataFile *cdf, const char *filepath)
bool cdf_write_layer (CDataFile *cdf, CDataFileLayer *blay)
bool cdf_write_data (CDataFile *cdf, unsigned int size, const void *data)
void cdf_write_close (CDataFile *cdf)
void cdf_remove (const char *filepath)
CDataFileLayercdf_layer_find (CDataFile *cdf, int type, const char *name)
CDataFileLayercdf_layer_add (CDataFile *cdf, int type, const char *name, size_t datasize)

Macro Definition Documentation

◆ CDF_LAYER_NAME_MAX

#define CDF_LAYER_NAME_MAX   64

Definition at line 16 of file BKE_customdata_file.h.

◆ CDF_TYPE_IMAGE

#define CDF_TYPE_IMAGE   0

Definition at line 13 of file BKE_customdata_file.h.

Referenced by cdf_read_header(), cdf_write_header(), and cdf_write_open().

◆ CDF_TYPE_MESH

#define CDF_TYPE_MESH   1

Typedef Documentation

◆ CDataFile

typedef struct CDataFile CDataFile

Definition at line 18 of file BKE_customdata_file.h.

◆ CDataFileLayer

typedef struct CDataFileLayer CDataFileLayer

Definition at line 19 of file BKE_customdata_file.h.

Function Documentation

◆ cdf_create()

CDataFile * cdf_create ( int type)

Definition at line 91 of file customdata_file.cc.

References MEM_callocN(), and CDataFile::type.

Referenced by CustomData_external_read(), and CustomData_external_write().

◆ cdf_free()

void cdf_free ( CDataFile * cdf)

◆ cdf_layer_add()

◆ cdf_layer_find()

CDataFileLayer * cdf_layer_find ( CDataFile * cdf,
int type,
const char * name )

◆ cdf_read_close()

void cdf_read_close ( CDataFile * cdf)

Definition at line 313 of file customdata_file.cc.

References CDataFile::readf.

Referenced by cdf_free(), cdf_read_open(), and CustomData_external_read().

◆ cdf_read_data()

bool cdf_read_data ( CDataFile * cdf,
unsigned int size,
void * data )

Definition at line 300 of file customdata_file.cc.

References data, CDataFile::readf, and size().

Referenced by layerRead_mdisps().

◆ cdf_read_layer()

bool cdf_read_layer ( CDataFile * cdf,
const CDataFileLayer * blay )

◆ cdf_read_open()

bool cdf_read_open ( CDataFile * cdf,
const char * filepath )

◆ cdf_remove()

void cdf_remove ( const char * filepath)

Definition at line 390 of file customdata_file.cc.

References BLI_delete().

◆ cdf_write_close()

void cdf_write_close ( CDataFile * cdf)

Definition at line 382 of file customdata_file.cc.

References CDataFile::writef.

Referenced by cdf_free(), and CustomData_external_write().

◆ cdf_write_data()

bool cdf_write_data ( CDataFile * cdf,
unsigned int size,
const void * data )

Definition at line 372 of file customdata_file.cc.

References data, size(), and CDataFile::writef.

Referenced by layerWrite_mdisps().

◆ cdf_write_layer()

bool cdf_write_layer ( CDataFile * cdf,
CDataFileLayer * blay )

Definition at line 367 of file customdata_file.cc.

Referenced by CustomData_external_write().

◆ cdf_write_open()