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

Method WriteData

csharp/src/Fory/AnySerializer.cs:24–32  ·  view source on GitHub ↗
(WriteContext context, in object? value, bool hasGenerics)

Source from the content-addressed store, hash-verified

22 public override object? DefaultValue => null;
23
24 public override void WriteData(WriteContext context, in object? value, bool hasGenerics)
25 {
26 if (value is null)
27 {
28 return;
29 }
30
31 DynamicAnyCodec.WriteAnyPayload(value!, context, hasGenerics);
32 }
33
34 public override object? ReadData(ReadContext context)
35 {

Callers

nothing calls this directly

Calls 1

WriteAnyPayloadMethod · 0.80

Tested by

no test coverage detected