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

Method WriteData

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

Source from the content-addressed store, hash-verified

234 public override List<uint> DefaultValue => null!;
235
236 public override void WriteData(WriteContext context, in List<uint> value, bool hasGenerics)
237 {
238 List<uint> list = value ?? [];
239 PrimitiveCollectionHeader.WriteListHeader(context, list.Count, hasGenerics, TypeId.VarUInt32, false);
240 for (int i = 0; i < list.Count; i++)
241 {
242 context.Writer.WriteVarUInt32(list[i]);
243 }
244 }
245
246 public override List<uint> ReadData(ReadContext context)
247 {

Callers

nothing calls this directly

Calls 2

WriteListHeaderMethod · 0.80
WriteVarUInt32Method · 0.80

Tested by

no test coverage detected