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

Method WriteData

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

Source from the content-addressed store, hash-verified

84 public override List<sbyte> DefaultValue => null!;
85
86 public override void WriteData(WriteContext context, in List<sbyte> value, bool hasGenerics)
87 {
88 List<sbyte> list = value ?? [];
89 PrimitiveCollectionHeader.WriteListHeader(context, list.Count, hasGenerics, TypeId.Int8, false);
90 for (int i = 0; i < list.Count; i++)
91 {
92 context.Writer.WriteInt8(list[i]);
93 }
94 }
95
96 public override List<sbyte> ReadData(ReadContext context)
97 {

Callers

nothing calls this directly

Calls 2

WriteListHeaderMethod · 0.80
WriteInt8Method · 0.45

Tested by

no test coverage detected