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

Method WriteData

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

Source from the content-addressed store, hash-verified

192 public override List<DateTimeOffset> DefaultValue => null!;
193
194 public override void WriteData(WriteContext context, in List<DateTimeOffset> value, bool hasGenerics)
195 {
196 List<DateTimeOffset> list = value ?? [];
197 PrimitiveCollectionHeader.WriteListHeader(context, list.Count, hasGenerics, TypeId.Timestamp, false);
198 for (int i = 0; i < list.Count; i++)
199 {
200 TimeCodec.WriteTimestamp(context, list[i]);
201 }
202 }
203
204 public override List<DateTimeOffset> ReadData(ReadContext context)
205 {

Callers

nothing calls this directly

Calls 2

WriteListHeaderMethod · 0.80
WriteTimestampMethod · 0.80

Tested by

no test coverage detected