MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setNumber

Function setNumber

app/src/API/GRPC/ConversionUtils.cpp:158–161  ·  view source on GitHub ↗

* @brief Sets a double field on a protobuf Struct. */

Source from the content-addressed store, hash-verified

156 * @brief Sets a double field on a protobuf Struct.
157 */
158static inline void setNumber(google::protobuf::Struct& s, const char* key, double val)
159{
160 (*s.mutable_fields())[key].set_number_value(val);
161}
162
163/**
164 * @brief Converts a Frame directly to a protobuf Struct.

Callers 1

frameToProtoStructMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected