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

Method WriteData

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

Source from the content-addressed store, hash-verified

512 public override HashSet<long> DefaultValue => null!;
513
514 public override void WriteData(WriteContext context, in HashSet<long> value, bool hasGenerics)
515 {
516 HashSet<long> set = value ?? [];
517 PrimitiveCollectionHeader.WriteListHeader(context, set.Count, hasGenerics, TypeId.VarInt64, false);
518 foreach (long item in set)
519 {
520 context.Writer.WriteVarInt64(item);
521 }
522 }
523
524 public override HashSet<long> ReadData(ReadContext context)
525 {

Callers

nothing calls this directly

Calls 2

WriteListHeaderMethod · 0.80
WriteVarInt64Method · 0.80

Tested by

no test coverage detected