Write handles ref tracking and type writing, then delegates to WriteData
(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value)
| 53 | |
| 54 | // Write handles ref tracking and type writing, then delegates to WriteData |
| 55 | func (s mapSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) { |
| 56 | if writeMapRefAndType(ctx, refMode, writeType, value) || ctx.HasError() { |
| 57 | return |
| 58 | } |
| 59 | s.WriteData(ctx, value) |
| 60 | } |
| 61 | |
| 62 | // WriteData serializes map data using chunk protocol |
| 63 | func (s mapSerializer) WriteData(ctx *WriteContext, value reflect.Value) { |
nothing calls this directly
no test coverage detected