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

Method WriteData

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

Source from the content-addressed store, hash-verified

579 public override ImmutableHashSet<T> DefaultValue => null!;
580
581 public override void WriteData(WriteContext context, in ImmutableHashSet<T> value, bool hasGenerics)
582 {
583 ImmutableHashSet<T> safe = value ?? ImmutableHashSet<T>.Empty;
584 CollectionCodec.WriteCollectionData(safe, context.TypeResolver.GetSerializer<T>(), context, hasGenerics);
585 }
586
587 public override ImmutableHashSet<T> ReadData(ReadContext context)
588 {

Callers

nothing calls this directly

Calls 1

WriteCollectionDataMethod · 0.80

Tested by

no test coverage detected