(WriteContext context, in TEnum value, bool hasGenerics)
| 25 | public override TEnum DefaultValue => default; |
| 26 | |
| 27 | public override void WriteData(WriteContext context, in TEnum value, bool hasGenerics) |
| 28 | { |
| 29 | _ = hasGenerics; |
| 30 | if (!DefinedValueToOrdinal.TryGetValue(value, out uint ordinal)) |
| 31 | { |
| 32 | ordinal = Convert.ToUInt32(value); |
| 33 | } |
| 34 | |
| 35 | context.Writer.WriteVarUInt32(ordinal); |
| 36 | } |
| 37 | |
| 38 | public override TEnum ReadData(ReadContext context) |
| 39 | { |
nothing calls this directly
no test coverage detected