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

Method Write

go/fory/map.go:55–60  ·  view source on GitHub ↗

Write handles ref tracking and type writing, then delegates to WriteData

(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value)

Source from the content-addressed store, hash-verified

53
54// Write handles ref tracking and type writing, then delegates to WriteData
55func (s mapSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
56 if writeMapRefAndType(ctx, refMode, writeType, value) || ctx.HasError() {
57 return
58 }
59 s.WriteData(ctx, value)
60}
61
62// WriteData serializes map data using chunk protocol
63func (s mapSerializer) WriteData(ctx *WriteContext, value reflect.Value) {

Callers

nothing calls this directly

Calls 3

WriteDataMethod · 0.95
writeMapRefAndTypeFunction · 0.85
HasErrorMethod · 0.45

Tested by

no test coverage detected