Blender
V5.3
source
blender
blenlib
BLI_fixed_string.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2026 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include <cstddef>
12
13
namespace
blender
{
14
21
template
<
size_t
N>
struct
FixedString
{
22
char
data
[
N
];
23
24
constexpr
FixedString
(
const
char
(&
str
)[
N
])
25
{
26
for
(
size_t
i = 0; i <
N
; i++) {
27
data
[i] =
str
[i];
28
}
29
}
30
};
31
32
}
// namespace blender
str
#define str(s)
Definition
ffmpeg_codecs.cc:107
N
#define N
Definition
mball_tessellate.cc:278
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::FixedString::data
char data[N]
Definition
BLI_fixed_string.hh:22
blender::FixedString::FixedString
constexpr FixedString(const char(&str)[N])
Definition
BLI_fixed_string.hh:24
Generated on
for Blender by
doxygen
1.18.0