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

Method WriteData

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

Source from the content-addressed store, hash-verified

612 public override HashSet<ulong> DefaultValue => null!;
613
614 public override void WriteData(WriteContext context, in HashSet<ulong> value, bool hasGenerics)
615 {
616 HashSet<ulong> set = value ?? [];
617 PrimitiveCollectionHeader.WriteListHeader(context, set.Count, hasGenerics, TypeId.VarUInt64, false);
618 foreach (ulong item in set)
619 {
620 context.Writer.WriteVarUInt64(item);
621 }
622 }
623
624 public override HashSet<ulong> ReadData(ReadContext context)
625 {

Callers

nothing calls this directly

Calls 2

WriteListHeaderMethod · 0.80
WriteVarUInt64Method · 0.80

Tested by

no test coverage detected