MCPcopy Create free account
hub / github.com/apache/fory / ReadFloat64Array

Method ReadFloat64Array

csharp/src/Fory/TypeResolver.cs:1449–1465  ·  view source on GitHub ↗
(ReadContext context)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

ReadVarUInt32Method · 0.80
CheckBoundMethod · 0.80
ReadFloat64Method · 0.45

Tested by

no test coverage detected