MCPcopy Create free account
hub / github.com/Tencent/tgfx / Serialize

Method Serialize

src/inspect/serialization/MatrixSerialization.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33std::shared_ptr<Data> MatrixSerialization::Serialize(const Matrix* matrix) {
34 DEBUG_ASSERT(matrix != nullptr)
35 flexbuffers::Builder fbb;
36 size_t startMap;
37 size_t contentMap;
38 SerializeUtils::SerializeBegin(fbb, tgfx::inspect::LayerTreeMessage::LayerSubAttribute, startMap,
39 contentMap);
40 SerializeMatrixImpl(fbb, matrix);
41 SerializeUtils::SerializeEnd(fbb, startMap, contentMap);
42 return Data::MakeWithCopy(fbb.GetBuffer().data(), fbb.GetBuffer().size());
43}
44} // namespace tgfx

Callers

nothing calls this directly

Calls 3

SerializeMatrixImplFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected