(WriteContext context, in ushort[] value, bool hasGenerics)
| 200 | public override ushort[] DefaultValue => null!; |
| 201 | |
| 202 | public override void WriteData(WriteContext context, in ushort[] value, bool hasGenerics) |
| 203 | { |
| 204 | _ = hasGenerics; |
| 205 | ushort[] safe = value ?? []; |
| 206 | context.Writer.WriteVarUInt32((uint)(safe.Length * 2)); |
| 207 | for (int i = 0; i < safe.Length; i++) |
| 208 | { |
| 209 | context.Writer.WriteUInt16(safe[i]); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | public override ushort[] ReadData(ReadContext context) |
| 214 | { |
nothing calls this directly
no test coverage detected