MCPcopy Create free account
hub / github.com/AimRT/AimRT / ToAimRTStringView

Function ToAimRTStringView

src/interface/aimrt_module_cpp_interface/util/string.h:13–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace aimrt::util {
12
13inline aimrt_string_view_t ToAimRTStringView(const std::string& s) {
14 return aimrt_string_view_t{s.c_str(), s.size()};
15}
16
17inline aimrt_string_view_t ToAimRTStringView(std::string_view s) {
18 return aimrt_string_view_t{s.data(), s.size()};

Callers 15

GenBaseMethod · 0.85
GenOpsBaseMethod · 0.85
GetMetaValueMethod · 0.85
SetMetaValueMethod · 0.85
PublishMethod · 0.85
GetPublisherMethod · 0.85
GetSubscriberMethod · 0.85
GetExecutorMethod · 0.85
GetParameterMethod · 0.85
SetParameterMethod · 0.85
GenOpsBaseMethod · 0.85
GetMetaValueMethod · 0.85

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.68
TEST_FFunction · 0.68