Blender V4.3
BKE_customdata_file.h File Reference

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 18 of file BKE_customdata_file.h.

◆ CDF_TYPE_IMAGE

#define CDF_TYPE_IMAGE   0

Definition at line 15 of file BKE_customdata_file.h.

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

◆ CDF_TYPE_MESH

Typedef Documentation

◆ CDataFile

typedef struct CDataFile CDataFile

Definition at line 20 of file BKE_customdata_file.h.

◆ CDataFileLayer

typedef struct CDataFileLayer CDataFileLayer

Definition at line 21 of file BKE_customdata_file.h.

Function Documentation

◆ cdf_create()

CDataFile * cdf_create ( int type)

Definition at line 96 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()

CDataFileLayer * cdf_layer_add ( CDataFile * cdf,
int type,
const char * name,
size_t datasize )

◆ 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 331 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 )

◆ 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 408 of file customdata_file.cc.

References BLI_delete().

◆ cdf_write_close()

void cdf_write_close ( CDataFile * cdf)

Definition at line 400 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 390 of file customdata_file.cc.

References CDataFile::writef.

Referenced by layerWrite_mdisps().

◆ cdf_write_layer()

bool cdf_write_layer ( CDataFile * cdf,
CDataFileLayer * blay )

Definition at line 385 of file customdata_file.cc.

Referenced by CustomData_external_write().

◆ cdf_write_open()