| 31 | } |
| 32 | |
| 33 | std::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 |
nothing calls this directly
no test coverage detected