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

Method ReadUInt64Array

csharp/src/Fory/TypeResolver.cs:1413–1429  ·  view source on GitHub ↗
(ReadContext context)

Source from the content-addressed store, hash-verified

1411 }
1412
1413 private static ulong[] ReadUInt64Array(ReadContext context)
1414 {
1415 int byteSize = checked((int)context.Reader.ReadVarUInt32());
1416 if ((byteSize & 7) != 0)
1417 {
1418 throw new InvalidDataException("uint64 array byte size mismatch");
1419 }
1420
1421 context.Reader.CheckBound(byteSize);
1422 ulong[] values = new ulong[byteSize / 8];
1423 for (int i = 0; i < values.Length; i++)
1424 {
1425 values[i] = context.Reader.ReadUInt64();
1426 }
1427
1428 return values;
1429 }
1430
1431 private static float[] ReadFloat32Array(ReadContext context)
1432 {

Callers

nothing calls this directly

Calls 3

ReadVarUInt32Method · 0.80
CheckBoundMethod · 0.80
ReadUInt64Method · 0.80

Tested by

no test coverage detected