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

Method Write

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

Source from the content-addressed store, hash-verified

963}
964
965func (s stringBoolMapSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
966 done := writeMapRefAndType(ctx, refMode, writeType, value)
967 if done || ctx.HasError() {
968 return
969 }
970 writeMapStringBool(ctx.buffer, value.Interface().(map[string]bool), hasGenerics)
971}
972
973func (s stringBoolMapSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
974 if value.IsNil() {

Callers

nothing calls this directly

Calls 3

writeMapRefAndTypeFunction · 0.85
writeMapStringBoolFunction · 0.85
HasErrorMethod · 0.45

Tested by

no test coverage detected