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

Method WriteData

csharp/src/Fory/CollectionSerializers.cs:533–537  ·  view source on GitHub ↗
(WriteContext context, in List<T> value, bool hasGenerics)

Source from the content-addressed store, hash-verified

531 public override List<T> DefaultValue => null!;
532
533 public override void WriteData(WriteContext context, in List<T> value, bool hasGenerics)
534 {
535 List<T> safe = value ?? [];
536 CollectionCodec.WriteCollectionData(safe, context.TypeResolver.GetSerializer<T>(), context, hasGenerics);
537 }
538
539 public override List<T> ReadData(ReadContext context)
540 {

Callers

nothing calls this directly

Calls 1

WriteCollectionDataMethod · 0.80

Tested by

no test coverage detected