(ReadContext context)
| 1339 | } |
| 1340 | |
| 1341 | private static int[] ReadInt32Array(ReadContext context) |
| 1342 | { |
| 1343 | int byteSize = checked((int)context.Reader.ReadVarUInt32()); |
| 1344 | if ((byteSize & 3) != 0) |
| 1345 | { |
| 1346 | throw new InvalidDataException("int32 array byte size mismatch"); |
| 1347 | } |
| 1348 | |
| 1349 | context.Reader.CheckBound(byteSize); |
| 1350 | int[] values = new int[byteSize / 4]; |
| 1351 | for (int i = 0; i < values.Length; i++) |
| 1352 | { |
| 1353 | values[i] = context.Reader.ReadInt32(); |
| 1354 | } |
| 1355 | |
| 1356 | return values; |
| 1357 | } |
| 1358 | |
| 1359 | private static long[] ReadInt64Array(ReadContext context) |
| 1360 | { |
nothing calls this directly
no test coverage detected