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

Method WriteData

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

Source from the content-addressed store, hash-verified

437 public override HashSet<sbyte> DefaultValue => null!;
438
439 public override void WriteData(WriteContext context, in HashSet<sbyte> value, bool hasGenerics)
440 {
441 HashSet<sbyte> set = value ?? [];
442 PrimitiveCollectionHeader.WriteListHeader(context, set.Count, hasGenerics, TypeId.Int8, false);
443 foreach (sbyte item in set)
444 {
445 context.Writer.WriteInt8(item);
446 }
447 }
448
449 public override HashSet<sbyte> ReadData(ReadContext context)
450 {

Callers

nothing calls this directly

Calls 2

WriteListHeaderMethod · 0.80
WriteInt8Method · 0.45

Tested by

no test coverage detected