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

Method Write

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

Source from the content-addressed store, hash-verified

1068}
1069
1070func (s intIntMapSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
1071 done := writeMapRefAndType(ctx, refMode, writeType, value)
1072 if done || ctx.HasError() {
1073 return
1074 }
1075 writeMapIntInt(ctx.buffer, value.Interface().(map[int]int), hasGenerics)
1076}
1077
1078func (s intIntMapSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
1079 if value.IsNil() {

Callers

nothing calls this directly

Calls 3

writeMapRefAndTypeFunction · 0.85
writeMapIntIntFunction · 0.85
HasErrorMethod · 0.45

Tested by

no test coverage detected