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

Method WriteData

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

Source from the content-addressed store, hash-verified

537 public override HashSet<byte> DefaultValue => null!;
538
539 public override void WriteData(WriteContext context, in HashSet<byte> value, bool hasGenerics)
540 {
541 HashSet<byte> set = value ?? [];
542 PrimitiveCollectionHeader.WriteListHeader(context, set.Count, hasGenerics, TypeId.UInt8, false);
543 foreach (byte item in set)
544 {
545 context.Writer.WriteUInt8(item);
546 }
547 }
548
549 public override HashSet<byte> ReadData(ReadContext context)
550 {

Callers

nothing calls this directly

Calls 2

WriteListHeaderMethod · 0.80
WriteUInt8Method · 0.80

Tested by

no test coverage detected