Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/BLO_read_write.h
| Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | |||||
| void blo_write_id_struct(BlendWriter *writer, | void blo_write_id_struct(BlendWriter *writer, | ||||
| int struct_id, | int struct_id, | ||||
| const void *id_address, | const void *id_address, | ||||
| const struct ID *id); | const struct ID *id); | ||||
| #define BLO_write_id_struct(writer, struct_name, id_address, id) \ | #define BLO_write_id_struct(writer, struct_name, id_address, id) \ | ||||
| blo_write_id_struct(writer, BLO_get_struct_id(writer, struct_name), id_address, id) | blo_write_id_struct(writer, BLO_get_struct_id(writer, struct_name), id_address, id) | ||||
| /* Write raw data. */ | /* Write raw data. */ | ||||
| void BLO_write_raw(BlendWriter *writer, int size_in_bytes, const void *data_ptr); | void BLO_write_raw(BlendWriter *writer, size_t size_in_bytes, const void *data_ptr); | ||||
| void BLO_write_int32_array(BlendWriter *writer, int size, const int32_t *data_ptr); | void BLO_write_int32_array(BlendWriter *writer, uint num, const int32_t *data_ptr); | ||||
| void BLO_write_uint32_array(BlendWriter *writer, int size, const uint32_t *data_ptr); | void BLO_write_uint32_array(BlendWriter *writer, uint num, const uint32_t *data_ptr); | ||||
| void BLO_write_float_array(BlendWriter *writer, int size, const float *data_ptr); | void BLO_write_float_array(BlendWriter *writer, uint num, const float *data_ptr); | ||||
| void BLO_write_float3_array(BlendWriter *writer, int size, const float *data_ptr); | void BLO_write_float3_array(BlendWriter *writer, uint num, const float *data_ptr); | ||||
| void BLO_write_pointer_array(BlendWriter *writer, int size, const void *data_ptr); | void BLO_write_pointer_array(BlendWriter *writer, uint num, const void *data_ptr); | ||||
| void BLO_write_string(BlendWriter *writer, const char *str); | void BLO_write_string(BlendWriter *writer, const char *data_ptr); | ||||
| /* Misc. */ | /* Misc. */ | ||||
| bool BLO_write_is_undo(BlendWriter *writer); | bool BLO_write_is_undo(BlendWriter *writer); | ||||
| /* Blend Read Data API | /* Blend Read Data API | ||||
| * =================== | * =================== | ||||
| * | * | ||||
| * Generally, for every BLO_write_* call there should be a corresponding BLO_read_* call. | * Generally, for every BLO_write_* call there should be a corresponding BLO_read_* call. | ||||
| ▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines | |||||