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

Method Clone

zapcore/json_encoder.go:346–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

344func (enc *jsonEncoder) AppendUintptr(v uintptr) { enc.AppendUint64(uint64(v)) }
345
346func (enc *jsonEncoder) Clone() Encoder {
347 clone := enc.clone()
348 clone.buf.Write(enc.buf.Bytes())
349 return clone
350}
351
352func (enc *jsonEncoder) clone() *jsonEncoder {
353 clone := _jsonPool.Get()

Callers 1

TestJSONCloneFunction · 0.95

Calls 3

cloneMethod · 0.95
BytesMethod · 0.80
WriteMethod · 0.65

Tested by 1

TestJSONCloneFunction · 0.76