(ReadContext context)
| 433 | } |
| 434 | |
| 435 | public override double[] ReadData(ReadContext context) |
| 436 | { |
| 437 | int byteSize = checked((int)context.Reader.ReadVarUInt32()); |
| 438 | if ((byteSize & 7) != 0) |
| 439 | { |
| 440 | throw new InvalidDataException("float64 array byte size mismatch"); |
| 441 | } |
| 442 | |
| 443 | context.Reader.CheckBound(byteSize); |
| 444 | double[] values = new double[byteSize / 8]; |
| 445 | for (int i = 0; i < values.Length; i++) |
| 446 | { |
| 447 | values[i] = context.Reader.ReadFloat64(); |
| 448 | } |
| 449 | |
| 450 | return values; |
| 451 | } |
| 452 | } |
nothing calls this directly
no test coverage detected