(WriteContext context, in List<Half> value, bool hasGenerics)
| 284 | public override List<Half> DefaultValue => null!; |
| 285 | |
| 286 | public override void WriteData(WriteContext context, in List<Half> value, bool hasGenerics) |
| 287 | { |
| 288 | List<Half> list = value ?? []; |
| 289 | PrimitiveCollectionHeader.WriteListHeader(context, list.Count, hasGenerics, TypeId.Float16, false); |
| 290 | for (int i = 0; i < list.Count; i++) |
| 291 | { |
| 292 | context.Writer.WriteUInt16(BitConverter.HalfToUInt16Bits(list[i])); |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | public override List<Half> ReadData(ReadContext context) |
| 297 | { |
nothing calls this directly
no test coverage detected