5#include "testing/testing.h"
36 typed_span_a.
fill(42);
38 const GArray array_b = std::move(array_a);
56 typed_span_a.
fill(42);
67 const GArray array_c = array_a;
78 void *buffer =
static_cast<void *
>(values);
103 array.reinitialize(10);
105 span =
array.as_mutable_span();
111 array.reinitialize(0);
130 array.reinitialize(10);
131 array.as_mutable_span().typed<
int>()[9] = 7;
Read Blender memory allocation and freeing.
static const CPPType & get()
GMutableSpan as_mutable_span()
const CPPType & type() const
GArray(Allocator allocator={}) noexcept
const void * data() const
MutableSpan< T > typed() const
constexpr T * data() const
constexpr void fill(const T &value) const
static void SetUpTestSuite()
#define EXPECT_FALSE(result)
#define EXPECT_TRUE(result)
TEST_F(BlfLoadTest, load)
void * MEM_new_array_uninitialized(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
void register_cpp_types()
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)