MCPcopy
hub / github.com/uber-go/zap / putJSONEncoder

Function putJSONEncoder

zapcore/json_encoder.go:41–52  ·  zapcore/json_encoder.go::putJSONEncoder
(enc *jsonEncoder)

Source from the content-addressed store, hash-verified

39})
40
41func putJSONEncoder(enc *jsonEncoder) {
42 if enc.reflectBuf != nil {
43 enc.reflectBuf.Free()
44 }
45 enc.EncoderConfig = nil
46 enc.buf = nil
47 enc.spaced = false
48 enc.openNamespaces = 0
49 enc.reflectBuf = nil
50 enc.reflectEnc = nil
51 _jsonPool.Put(enc)
52}
53
54type jsonEncoder struct {
55 *EncoderConfig

Callers 2

EncodeEntryMethod · 0.85
writeContextMethod · 0.85

Calls 2

PutMethod · 0.80
FreeMethod · 0.45

Tested by

no test coverage detected