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

Method WriteData

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

Source from the content-addressed store, hash-verified

237 public override uint[] DefaultValue => null!;
238
239 public override void WriteData(WriteContext context, in uint[] value, bool hasGenerics)
240 {
241 _ = hasGenerics;
242 uint[] safe = value ?? [];
243 context.Writer.WriteVarUInt32((uint)(safe.Length * 4));
244 for (int i = 0; i < safe.Length; i++)
245 {
246 context.Writer.WriteUInt32(safe[i]);
247 }
248 }
249
250 public override uint[] ReadData(ReadContext context)
251 {

Callers

nothing calls this directly

Calls 2

WriteVarUInt32Method · 0.80
WriteUInt32Method · 0.80

Tested by

no test coverage detected