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

Method WriteData

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

Source from the content-addressed store, hash-verified

163 public override long[] DefaultValue => null!;
164
165 public override void WriteData(WriteContext context, in long[] value, bool hasGenerics)
166 {
167 _ = hasGenerics;
168 long[] safe = value ?? [];
169 context.Writer.WriteVarUInt32((uint)(safe.Length * 8));
170 for (int i = 0; i < safe.Length; i++)
171 {
172 context.Writer.WriteInt64(safe[i]);
173 }
174 }
175
176 public override long[] ReadData(ReadContext context)
177 {

Callers

nothing calls this directly

Calls 2

WriteVarUInt32Method · 0.80
WriteInt64Method · 0.45

Tested by

no test coverage detected