diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-05 22:44:14 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-05 22:55:45 +0300 |
commit | 60b8db587f655976752f92a59f9b12db04e107a6 (patch) | |
tree | e3b89e42065dfdd679da6a4dacc056a3c038eac7 /source/blender/blenloader/intern | |
parent | f0047e6754de30b4c458c0cec476cfb2915d75fd (diff) |
Blenloader: new write_struct_at_address api functions
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index cca560f3890..1498461b728 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -4541,6 +4541,14 @@ void BLO_write_struct_by_id(BlendWriter *writer, int struct_id, const void *data writestruct_nr(writer->wd, DATA, struct_id, 1, data_ptr); } +void BLO_write_struct_at_address_by_id(BlendWriter *writer, + int struct_id, + const void *address, + const void *data_ptr) +{ + writestruct_at_address_nr(writer->wd, DATA, struct_id, 1, address, data_ptr); +} + void BLO_write_struct_array_by_id(BlendWriter *writer, int struct_id, int array_size, @@ -4549,6 +4557,12 @@ void BLO_write_struct_array_by_id(BlendWriter *writer, writestruct_nr(writer->wd, DATA, struct_id, array_size, data_ptr); } +void BLO_write_struct_array_at_address_by_id( + BlendWriter *writer, int struct_id, int array_size, const void *address, const void *data_ptr) +{ + writestruct_at_address_nr(writer->wd, DATA, struct_id, array_size, address, data_ptr); +} + void BLO_write_struct_list_by_id(BlendWriter *writer, int struct_id, ListBase *list) { writelist_nr(writer->wd, DATA, struct_id, list); |