Blender
V4.3
source
blender
blenlib
intern
resource_scope.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#include "
BLI_resource_scope.hh
"
6
7
namespace
blender
{
8
9
ResourceScope::ResourceScope
() =
default
;
10
11
ResourceScope::~ResourceScope
()
12
{
13
/* Free in reversed order. */
14
for
(
int64_t
i = resources_.
size
(); i--;) {
15
ResourceData &data = resources_[i];
16
data.free(data.data);
17
}
18
}
19
20
}
// namespace blender
BLI_resource_scope.hh
blender::ResourceScope::~ResourceScope
~ResourceScope()
Definition
resource_scope.cc:11
blender::ResourceScope::ResourceScope
ResourceScope()
blender::Vector::size
int64_t size() const
Definition
BLI_vector.hh:691
blender
Definition
ANIM_action.hh:36
int64_t
__int64 int64_t
Definition
stdint.h:89
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0