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

Method ReadInt8Array

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

Source from the content-addressed store, hash-verified

1308 }
1309
1310 private static sbyte[] ReadInt8Array(ReadContext context)
1311 {
1312 int count = checked((int)context.Reader.ReadVarUInt32());
1313 context.Reader.CheckBound(count);
1314 sbyte[] values = new sbyte[count];
1315 for (int i = 0; i < values.Length; i++)
1316 {
1317 values[i] = context.Reader.ReadInt8();
1318 }
1319
1320 return values;
1321 }
1322
1323 private static short[] ReadInt16Array(ReadContext context)
1324 {

Callers

nothing calls this directly

Calls 3

ReadVarUInt32Method · 0.80
CheckBoundMethod · 0.80
ReadInt8Method · 0.45

Tested by

no test coverage detected