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

Method Write

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

Source from the content-addressed store, hash-verified

893}
894
895func (s stringIntMapSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
896 done := writeMapRefAndType(ctx, refMode, writeType, value)
897 if done || ctx.HasError() {
898 return
899 }
900 writeMapStringInt(ctx.buffer, value.Interface().(map[string]int), hasGenerics)
901}
902
903func (s stringIntMapSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
904 if value.IsNil() {

Callers

nothing calls this directly

Calls 3

writeMapRefAndTypeFunction · 0.85
writeMapStringIntFunction · 0.85
HasErrorMethod · 0.45

Tested by

no test coverage detected