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

Method WriteData

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

Source from the content-addressed store, hash-verified

167 public override List<DateOnly> DefaultValue => null!;
168
169 public override void WriteData(WriteContext context, in List<DateOnly> value, bool hasGenerics)
170 {
171 List<DateOnly> list = value ?? [];
172 PrimitiveCollectionHeader.WriteListHeader(context, list.Count, hasGenerics, TypeId.Date, false);
173 for (int i = 0; i < list.Count; i++)
174 {
175 TimeCodec.WriteDate(context, list[i]);
176 }
177 }
178
179 public override List<DateOnly> ReadData(ReadContext context)
180 {

Callers

nothing calls this directly

Calls 2

WriteListHeaderMethod · 0.80
WriteDateMethod · 0.80

Tested by

no test coverage detected