(ReadContext context)
| 36 | } |
| 37 | |
| 38 | public override bool[] ReadData(ReadContext context) |
| 39 | { |
| 40 | int byteSize = checked((int)context.Reader.ReadVarUInt32()); |
| 41 | context.Reader.CheckBound(byteSize); |
| 42 | bool[] values = new bool[byteSize]; |
| 43 | for (int i = 0; i < byteSize; i++) |
| 44 | { |
| 45 | values[i] = context.Reader.ReadUInt8() != 0; |
| 46 | } |
| 47 | |
| 48 | return values; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | internal sealed class Int8ArraySerializer : Serializer<sbyte[]> |
nothing calls this directly
no test coverage detected