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

Method WriteData

csharp/src/Fory/PrimitiveCollectionSerializers.cs:589–597  ·  view source on GitHub ↗
(WriteContext context, in HashSet<uint> value, bool hasGenerics)

Source from the content-addressed store, hash-verified

587 public override HashSet<uint> DefaultValue => null!;
588
589 public override void WriteData(WriteContext context, in HashSet<uint> value, bool hasGenerics)
590 {
591 HashSet<uint> set = value ?? [];
592 PrimitiveCollectionHeader.WriteListHeader(context, set.Count, hasGenerics, TypeId.VarUInt32, false);
593 foreach (uint item in set)
594 {
595 context.Writer.WriteVarUInt32(item);
596 }
597 }
598
599 public override HashSet<uint> ReadData(ReadContext context)
600 {

Callers

nothing calls this directly

Calls 2

WriteListHeaderMethod · 0.80
WriteVarUInt32Method · 0.80

Tested by

no test coverage detected