8 #ifndef NT_VALUE_INTERNAL_H_
9 #define NT_VALUE_INTERNAL_H_
14 #include "llvm/StringRef.h"
21 void ConvertToC(
const Value& in,
NT_Value* out);
22 std::shared_ptr<Value> ConvertFromC(
const NT_Value& value);
23 void ConvertToC(llvm::StringRef in,
NT_String* out);
24 inline llvm::StringRef ConvertFromC(
const NT_String& str) {
25 return llvm::StringRef(str.
str, str.
len);
30 #endif // NT_VALUE_INTERNAL_H_
NetworkTables Entry Value.
Definition: ntcore_c.h:80
A NetworkTables string.
Definition: ntcore_c.h:65
char * str
String contents (UTF-8).
Definition: ntcore_c.h:71
size_t len
Length of the string in bytes.
Definition: ntcore_c.h:76