(ReadContext context)
| 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 | { |
nothing calls this directly
no test coverage detected