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

Method encode

Sming/Libraries/nanopb/src/Stream.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36size_t OutputStream::encode(const pb_msgdesc_t* fields, const void* src_struct)
37{
38 pb_ostream_t os{};
39 os.state = const_cast<OutputStream*>(this);
40 os.callback = buf_write;
41 os.max_size = SIZE_MAX;
42
43 return pb_encode(&os, fields, src_struct) ? os.bytes_written : 0;
44}
45
46} // namespace Protobuf

Callers 10

mainFunction · 0.45
jsminFunction · 0.45
jsmin_for_posersFunction · 0.45
genkeyFunction · 0.45
upload_http_postFunction · 0.45
to_binaryMethod · 0.45
getEncodeSizeFunction · 0.45

Calls

no outgoing calls

Tested by 1

mainFunction · 0.36