(ReadContext context)
| 1375 | } |
| 1376 | |
| 1377 | private static ushort[] ReadUInt16Array(ReadContext context) |
| 1378 | { |
| 1379 | int byteSize = checked((int)context.Reader.ReadVarUInt32()); |
| 1380 | if ((byteSize & 1) != 0) |
| 1381 | { |
| 1382 | throw new InvalidDataException("uint16 array byte size mismatch"); |
| 1383 | } |
| 1384 | |
| 1385 | context.Reader.CheckBound(byteSize); |
| 1386 | ushort[] values = new ushort[byteSize / 2]; |
| 1387 | for (int i = 0; i < values.Length; i++) |
| 1388 | { |
| 1389 | values[i] = context.Reader.ReadUInt16(); |
| 1390 | } |
| 1391 | |
| 1392 | return values; |
| 1393 | } |
| 1394 | |
| 1395 | private static uint[] ReadUInt32Array(ReadContext context) |
| 1396 | { |
nothing calls this directly
no test coverage detected