Blender V5.3
customdata_file.cc File Reference
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_endian_defines.hh"
#include "BLI_fileops.hh"
#include "BLI_string.hh"
#include "BLI_utildefines.hh"
#include "BKE_customdata_file.h"

Go to the source code of this file.

Classes

struct  blender::CDataFileHeader
struct  blender::CDataFileImageHeader
struct  blender::CDataFileMeshHeader
struct  blender::CDataFileLayer
struct  blender::CDataFile

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define CDF_ENDIAN_LITTLE   0
#define CDF_ENDIAN_BIG   1
#define CDF_DATA_FLOAT   0
#define CDF_VERSION   0
#define CDF_SUBVERSION   0
#define CDF_TILE_SIZE   64

Functions

static int blender::cdf_endian ()
CDataFile * blender::cdf_create (int type)
void blender::cdf_free (CDataFile *cdf)
static bool blender::cdf_read_header (CDataFile *cdf)
static bool blender::cdf_write_header (CDataFile *cdf)
bool blender::cdf_read_open (CDataFile *cdf, const char *filepath)
bool blender::cdf_read_layer (CDataFile *cdf, const CDataFileLayer *blay)
bool blender::cdf_read_data (CDataFile *cdf, unsigned int size, void *data)
void blender::cdf_read_close (CDataFile *cdf)
bool blender::cdf_write_open (CDataFile *cdf, const char *filepath)
bool blender::cdf_write_layer (CDataFile *cdf, CDataFileLayer *blay)
bool blender::cdf_write_data (CDataFile *cdf, unsigned int size, const void *data)
void blender::cdf_write_close (CDataFile *cdf)
void blender::cdf_remove (const char *filepath)
CDataFileLayer * blender::cdf_layer_find (CDataFile *cdf, int type, const char *name)
CDataFileLayer * blender::cdf_layer_add (CDataFile *cdf, int type, const char *name, size_t datasize)

Macro Definition Documentation

◆ CDF_DATA_FLOAT

#define CDF_DATA_FLOAT   0

Definition at line 29 of file customdata_file.cc.

Referenced by blender::cdf_layer_add(), and blender::cdf_read_header().

◆ CDF_ENDIAN_BIG

#define CDF_ENDIAN_BIG   1

Definition at line 27 of file customdata_file.cc.

◆ CDF_ENDIAN_LITTLE

#define CDF_ENDIAN_LITTLE   0

Definition at line 26 of file customdata_file.cc.

Referenced by blender::cdf_endian().

◆ CDF_SUBVERSION

#define CDF_SUBVERSION   0

Definition at line 65 of file customdata_file.cc.

Referenced by blender::cdf_write_open().

◆ CDF_TILE_SIZE

#define CDF_TILE_SIZE   64

Definition at line 66 of file customdata_file.cc.

Referenced by blender::cdf_write_open().

◆ CDF_VERSION

#define CDF_VERSION   0

Definition at line 64 of file customdata_file.cc.

Referenced by blender::cdf_read_header(), and blender::cdf_write_open().