MCPcopy Create free account
hub / github.com/baidu/babylon / deserialize

Function deserialize

src/babylon/serialization/string.h:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 }
28
29 static bool deserialize(CodedInputStream& is, Value& value) noexcept {
30 const void* data;
31 int size;
32 value.clear();
33 while (is.GetDirectBufferPointer(&data, &size)) {
34 value.append(reinterpret_cast<const char*>(data),
35 static_cast<size_t>(size));
36 is.Skip(size);
37 }
38 return true;
39 }
40
41 static size_t calculate_serialized_size(const Value& value) noexcept {
42 return value.size();

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected