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

Method WriteData

csharp/src/Fory/CollectionSerializers.cs:512–520  ·  view source on GitHub ↗
(WriteContext context, in T[] value, bool hasGenerics)

Source from the content-addressed store, hash-verified

510 public override T[] DefaultValue => null!;
511
512 public override void WriteData(WriteContext context, in T[] value, bool hasGenerics)
513 {
514 T[] safe = value ?? [];
515 CollectionCodec.WriteCollectionData(
516 safe,
517 context.TypeResolver.GetSerializer<T>(),
518 context,
519 hasGenerics);
520 }
521
522 public override T[] ReadData(ReadContext context)
523 {

Callers

nothing calls this directly

Calls 1

WriteCollectionDataMethod · 0.80

Tested by

no test coverage detected