(ReadContext context)
| 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 | |
| 84 | internal sealed class Int16ArraySerializer : Serializer<short[]> |
nothing calls this directly
no test coverage detected