(ctx *WriteContext, value reflect.Value)
| 674 | var globalBFloat16Serializer = bfloat16Serializer{} |
| 675 | |
| 676 | func (s bfloat16Serializer) WriteData(ctx *WriteContext, value reflect.Value) { |
| 677 | // Value is effectively uint16 (alias) |
| 678 | ctx.buffer.WriteUint16(uint16(value.Uint())) |
| 679 | } |
| 680 | |
| 681 | func (s bfloat16Serializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) { |
| 682 | if refMode != RefModeNone { |
no test coverage detected