Blender V5.3
writefile.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9
10#pragma once
11
12#include <ostream>
13
14#include "DNA_sdna_pointers.hh"
15#include "DNA_sdna_types.h"
16
17#include "BLI_map.hh"
18#include "BLI_set.hh"
19
20#include "BLO_undofile.hh"
21
22namespace blender {
23
24class WriteWrap;
25
78
79struct WriteData {
80 const SDNA *sdna;
81 std::ostream *debug_dst = nullptr;
82
83 struct {
85 uchar *buf;
87 size_t used_len;
88
90 size_t max_size;
92 size_t chunk_size;
94
95#ifdef USE_WRITE_DATA_LEN
97 size_t write_len;
98#endif
99
102
116
125
131
136
143
145 std::string filepath;
146
151};
152
153} // namespace blender
BMesh Iterators.
unsigned __int64 uint64_t
Definition BKE_text.h:91
unsigned char uchar
Definition BKE_text.h:58
std::shared_ptr< dna::pointers::PointersInDNA > sdna_pointers
Definition writefile.hh:31
Map< const void *, uint64_t > pointer_map
Definition writefile.hh:49
const SDNA * sdna
Definition writefile.hh:80
struct blender::WriteData::@001170002120114163277232003255130215200052024114 buffer
Set< const void * > per_id_written_shared_addresses
Definition writefile.hh:130
struct blender::WriteData::@044343357155064103211111077354243036325062231364 validation_data
std::string filepath
Definition writefile.hh:145
MemFileWriteData mem
Definition writefile.hh:133
WriteDataStableAddressIDs stable_address_ids
Definition writefile.hh:124
std::ostream * debug_dst
Definition writefile.hh:81