(WriteContext context, in Half[] value, bool hasGenerics)
| 311 | public override Half[] DefaultValue => null!; |
| 312 | |
| 313 | public override void WriteData(WriteContext context, in Half[] value, bool hasGenerics) |
| 314 | { |
| 315 | _ = hasGenerics; |
| 316 | Half[] safe = value ?? []; |
| 317 | context.Writer.WriteVarUInt32((uint)(safe.Length * 2)); |
| 318 | for (int i = 0; i < safe.Length; i++) |
| 319 | { |
| 320 | context.Writer.WriteUInt16(BitConverter.HalfToUInt16Bits(safe[i])); |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | public override Half[] ReadData(ReadContext context) |
| 325 | { |
nothing calls this directly
no test coverage detected