MCPcopy Create free account
hub / github.com/apache/fory / Serialize

Method Serialize

benchmarks/csharp/BenchmarkSerializers.cs:106–112  ·  view source on GitHub ↗
(T value)

Source from the content-addressed store, hash-verified

104 public string Name => "protobuf";
105
106 public byte[] Serialize(T value)
107 {
108 _writeStream.Position = 0;
109 _writeStream.SetLength(0);
110 ProtobufNetSerializer.Serialize(_writeStream, value);
111 return _writeStream.ToArray();
112 }
113
114 public object? Deserialize(byte[] payload)
115 {

Callers

nothing calls this directly

Calls 2

ToArrayMethod · 0.80
SerializeMethod · 0.45

Tested by

no test coverage detected