From 2edf7d384fe7c7b2fe861d91c030031ea35f1595 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Mon, 9 Sep 2024 20:13:49 +0200 Subject: wip --- modules/codec/c++/data_raw.hpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'modules/codec') diff --git a/modules/codec/c++/data_raw.hpp b/modules/codec/c++/data_raw.hpp index 37e56d9..fabf77a 100644 --- a/modules/codec/c++/data_raw.hpp +++ b/modules/codec/c++/data_raw.hpp @@ -409,7 +409,8 @@ class data, encode::NativeRaw> { using MetaSchema = typename meta_schema::MetaSchema; private: - // data> dims_; + // rawr + // data, encode::NativeRaw> dims_; std::array dims_; std::vector::Type> value_; @@ -432,6 +433,16 @@ class data, encode::NativeRaw> { } } + /** + * Purely internal function for working C interfacing + */ + typename raw_native_array_type_helper::Type* get_raw_data() { + if(value_.size() == 0u){ + return nullptr; + } + return &(value_[0]); + } + SAW_DEFAULT_COPY(data); SAW_DEFAULT_MOVE(data); -- cgit v1.2.3