MCPcopy
hub / github.com/rs/zerolog / write

Method write

array.go:65–73  ·  view source on GitHub ↗
(dst []byte)

Source from the content-addressed store, hash-verified

63}
64
65func (a *Array) write(dst []byte) []byte {
66 dst = enc.AppendArrayStart(dst)
67 if len(a.buf) > 0 {
68 dst = append(dst, a.buf...)
69 }
70 dst = enc.AppendArrayEnd(dst)
71 putArray(a)
72 return dst
73}
74
75// Object marshals an object that implement the LogObjectMarshaler
76// interface and appends it to the array.

Callers 1

ArrayMethod · 0.95

Calls 3

putArrayFunction · 0.85
AppendArrayStartMethod · 0.65
AppendArrayEndMethod · 0.65

Tested by

no test coverage detected