Skip to content

Commit df6ca30

Browse files
committed
add compatibility runtimeInit
1 parent 72a53d5 commit df6ca30

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

DataFormats/Headers/include/Headers/DataHeader.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,12 @@ struct Descriptor {
273273
}
274274
}
275275

276+
/// compatibility version for null-terminated strings
277+
void runtimeInit(const char* string)
278+
{
279+
runtimeInit(std::string_view{string, std::strlen(string)});
280+
}
281+
276282
bool operator==(const Descriptor& other) const { return std::memcmp(this->str, other.str, N) == 0; }
277283
bool operator<(const Descriptor& other) const { return std::memcmp(this->str, other.str, N) < 0; }
278284
bool operator!=(const Descriptor& other) const { return not this->operator==(other); }

0 commit comments

Comments
 (0)