MCPcopy Create free account
hub / github.com/buger/jsonparser / MarshalJSONBuf

Method MarshalJSONBuf

benchmark/benchmark_ffjson.go:30–43  ·  view source on GitHub ↗

Benchmark harness support for STK-REQ-004.

(buf fflib.EncodingBuffer)

Source from the content-addressed store, hash-verified

28
29// Benchmark harness support for STK-REQ-004.
30func (mj *CBAvatar) MarshalJSONBuf(buf fflib.EncodingBuffer) error {
31 if mj == nil {
32 buf.WriteString("null")
33 return nil
34 }
35 var err error
36 var obj []byte
37 _ = obj
38 _ = err
39 buf.WriteString(`{"Url":`)
40 fflib.WriteJsonString(buf, string(mj.Url))
41 buf.WriteByte('}')
42 return nil
43}
44
45const (
46 ffj_t_CBAvatarbase = iota

Callers 1

MarshalJSONMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected