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

Method WriteData

csharp/src/Fory/PrimitiveArraySerializers.cs:276–285  ·  view source on GitHub ↗
(WriteContext context, in ulong[] value, bool hasGenerics)

Source from the content-addressed store, hash-verified

274 public override ulong[] DefaultValue => null!;
275
276 public override void WriteData(WriteContext context, in ulong[] value, bool hasGenerics)
277 {
278 _ = hasGenerics;
279 ulong[] safe = value ?? [];
280 context.Writer.WriteVarUInt32((uint)(safe.Length * 8));
281 for (int i = 0; i < safe.Length; i++)
282 {
283 context.Writer.WriteUInt64(safe[i]);
284 }
285 }
286
287 public override ulong[] ReadData(ReadContext context)
288 {

Callers

nothing calls this directly

Calls 2

WriteVarUInt32Method · 0.80
WriteUInt64Method · 0.80

Tested by

no test coverage detected