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

Method ReadData

csharp/src/Fory/PrimitiveArraySerializers.cs:435–451  ·  view source on GitHub ↗
(ReadContext context)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 3

ReadVarUInt32Method · 0.80
CheckBoundMethod · 0.80
ReadFloat64Method · 0.45

Tested by

no test coverage detected