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

Method WriteData

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

Source from the content-addressed store, hash-verified

547 public override HashSet<T> DefaultValue => null!;
548
549 public override void WriteData(WriteContext context, in HashSet<T> value, bool hasGenerics)
550 {
551 HashSet<T> safe = value ?? [];
552 CollectionCodec.WriteCollectionData(safe, context.TypeResolver.GetSerializer<T>(), context, hasGenerics);
553 }
554
555 public override HashSet<T> ReadData(ReadContext context)
556 {

Callers

nothing calls this directly

Calls 1

WriteCollectionDataMethod · 0.80

Tested by

no test coverage detected