(WriteContext context, in sbyte[] value, bool hasGenerics)
| 57 | public override sbyte[] DefaultValue => null!; |
| 58 | |
| 59 | public override void WriteData(WriteContext context, in sbyte[] value, bool hasGenerics) |
| 60 | { |
| 61 | _ = hasGenerics; |
| 62 | sbyte[] safe = value ?? []; |
| 63 | context.Writer.WriteVarUInt32((uint)safe.Length); |
| 64 | for (int i = 0; i < safe.Length; i++) |
| 65 | { |
| 66 | context.Writer.WriteInt8(safe[i]); |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | public override sbyte[] ReadData(ReadContext context) |
| 71 | { |
nothing calls this directly
no test coverage detected