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

Method ReadData

csharp/src/Fory/PrimitiveArraySerializers.cs:287–303  ·  view source on GitHub ↗
(ReadContext context)

Source from the content-addressed store, hash-verified

285 }
286
287 public override ulong[] ReadData(ReadContext context)
288 {
289 int byteSize = checked((int)context.Reader.ReadVarUInt32());
290 if ((byteSize & 7) != 0)
291 {
292 throw new InvalidDataException("uint64 array byte size mismatch");
293 }
294
295 context.Reader.CheckBound(byteSize);
296 ulong[] values = new ulong[byteSize / 8];
297 for (int i = 0; i < values.Length; i++)
298 {
299 values[i] = context.Reader.ReadUInt64();
300 }
301
302 return values;
303 }
304}
305
306internal sealed class Float16ArraySerializer : Serializer<Half[]>

Callers

nothing calls this directly

Calls 3

ReadVarUInt32Method · 0.80
CheckBoundMethod · 0.80
ReadUInt64Method · 0.80

Tested by

no test coverage detected