MCPcopy Create free account
hub / github.com/SmingHub/Sming / encode

Method encode

Sming/Libraries/nanopb/src/Callback.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace Protobuf
18{
19bool OutputCallback::encode(pb_ostream_t* stream, const pb_field_t* field)
20{
21 if(!pb_encode_tag_for_field(stream, field)) {
22 return false;
23 }
24
25 return pb_encode_string(stream, data, length);
26}
27
28bool InputCallback::decode(pb_istream_t* stream, const pb_field_t*)
29{

Callers 1

static_encodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected