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

Method WriteData

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

Source from the content-addressed store, hash-verified

159 public override List<long> DefaultValue => null!;
160
161 public override void WriteData(WriteContext context, in List<long> value, bool hasGenerics)
162 {
163 List<long> list = value ?? [];
164 PrimitiveCollectionHeader.WriteListHeader(context, list.Count, hasGenerics, TypeId.VarInt64, false);
165 for (int i = 0; i < list.Count; i++)
166 {
167 context.Writer.WriteVarInt64(list[i]);
168 }
169 }
170
171 public override List<long> ReadData(ReadContext context)
172 {

Callers

nothing calls this directly

Calls 2

WriteListHeaderMethod · 0.80
WriteVarInt64Method · 0.80

Tested by

no test coverage detected