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

Method ReadData

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

Source from the content-addressed store, hash-verified

68 }
69
70 public override sbyte[] ReadData(ReadContext context)
71 {
72 int byteSize = checked((int)context.Reader.ReadVarUInt32());
73 context.Reader.CheckBound(byteSize);
74 sbyte[] values = new sbyte[byteSize];
75 for (int i = 0; i < byteSize; i++)
76 {
77 values[i] = context.Reader.ReadInt8();
78 }
79
80 return values;
81 }
82}
83
84internal sealed class Int16ArraySerializer : Serializer<short[]>

Callers

nothing calls this directly

Calls 3

ReadVarUInt32Method · 0.80
CheckBoundMethod · 0.80
ReadInt8Method · 0.45

Tested by

no test coverage detected