(ReadContext context)
| 1447 | } |
| 1448 | |
| 1449 | private static double[] ReadFloat64Array(ReadContext context) |
| 1450 | { |
| 1451 | int byteSize = checked((int)context.Reader.ReadVarUInt32()); |
| 1452 | if ((byteSize & 7) != 0) |
| 1453 | { |
| 1454 | throw new InvalidDataException("float64 array byte size mismatch"); |
| 1455 | } |
| 1456 | |
| 1457 | context.Reader.CheckBound(byteSize); |
| 1458 | double[] values = new double[byteSize / 8]; |
| 1459 | for (int i = 0; i < values.Length; i++) |
| 1460 | { |
| 1461 | values[i] = context.Reader.ReadFloat64(); |
| 1462 | } |
| 1463 | |
| 1464 | return values; |
| 1465 | } |
| 1466 | |
| 1467 | private static bool WireTypeNeedsUserTypeId(TypeId typeId) |
| 1468 | { |
nothing calls this directly
no test coverage detected