MCPcopy Create free account
hub / github.com/apache/fory / Write

Method Write

go/fory/map_primitive.go:825–831  ·  view source on GitHub ↗
(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value)

Source from the content-addressed store, hash-verified

823}
824
825func (s stringStringMapSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
826 done := writeMapRefAndType(ctx, refMode, writeType, value)
827 if done || ctx.HasError() {
828 return
829 }
830 writeMapStringString(ctx.buffer, value.Interface().(map[string]string), hasGenerics)
831}
832
833func (s stringStringMapSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
834 if value.IsNil() {

Callers

nothing calls this directly

Calls 3

writeMapRefAndTypeFunction · 0.85
writeMapStringStringFunction · 0.85
HasErrorMethod · 0.45

Tested by

no test coverage detected