< Summary

Class:DCL.ECSComponents.AnimatorSerializer
Assembly:DCL.ECSComponents.Animator
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ECSComponents/Animator/Serialization/AnimatorSerializer.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:21
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Serialize(...)0%2100%
Deserialize(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ECSComponents/Animator/Serialization/AnimatorSerializer.cs

#LineLine coverage
 1using Google.Protobuf;
 2
 3namespace DCL.ECSComponents
 4{
 5    public static class AnimatorSerializer
 6    {
 7        public static byte[] Serialize(PBAnimator model)
 8        {
 09            int size = model.CalculateSize();
 010            byte[] buffer = new byte[size];
 011            CodedOutputStream output = new CodedOutputStream(buffer);
 012            model.WriteTo(output);
 013            return buffer;
 14        }
 15
 16        public static PBAnimator Deserialize(object data)
 17        {
 018            return PBAnimator.Parser.ParseFrom((byte[])data);
 19        }
 20    }
 21}