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

Method WriteData

go/fory/map_primitive.go:891–893  ·  view source on GitHub ↗
(ctx *WriteContext, value reflect.Value)

Source from the content-addressed store, hash-verified

889type stringIntMapSerializer struct{}
890
891func (s stringIntMapSerializer) WriteData(ctx *WriteContext, value reflect.Value) {
892 writeMapStringInt(ctx.buffer, value.Interface().(map[string]int), false)
893}
894
895func (s stringIntMapSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
896 done := writeMapRefAndType(ctx, refMode, writeType, value)

Callers

nothing calls this directly

Calls 1

writeMapStringIntFunction · 0.85

Tested by

no test coverage detected