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

Method ReadInt64Array

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

Source from the content-addressed store, hash-verified

1357 }
1358
1359 private static long[] ReadInt64Array(ReadContext context)
1360 {
1361 int byteSize = checked((int)context.Reader.ReadVarUInt32());
1362 if ((byteSize & 7) != 0)
1363 {
1364 throw new InvalidDataException("int64 array byte size mismatch");
1365 }
1366
1367 context.Reader.CheckBound(byteSize);
1368 long[] values = new long[byteSize / 8];
1369 for (int i = 0; i < values.Length; i++)
1370 {
1371 values[i] = context.Reader.ReadInt64();
1372 }
1373
1374 return values;
1375 }
1376
1377 private static ushort[] ReadUInt16Array(ReadContext context)
1378 {

Callers

nothing calls this directly

Calls 3

ReadVarUInt32Method · 0.80
CheckBoundMethod · 0.80
ReadInt64Method · 0.45

Tested by

no test coverage detected