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

Function defaultConfig

go/fory/fory.go:79–89  ·  view source on GitHub ↗

defaultConfig returns the default configuration

()

Source from the content-addressed store, hash-verified

77
78// defaultConfig returns the default configuration
79func defaultConfig() Config {
80 return Config{
81 TrackRef: false, // Match Java's default: reference tracking disabled
82 MaxDepth: 20,
83 IsXlang: true,
84 MaxTypeFields: 512,
85 MaxTypeMetaBytes: 4096,
86 MaxSchemaVersionsPerType: 10,
87 MaxAverageSchemaVersionsPerType: 3,
88 }
89}
90
91// Option is a function that configures a Fory instance
92type Option func(*Fory)

Callers 3

NewFunction · 0.85
readFieldDefFunction · 0.85

Calls

no outgoing calls