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

Method MarshalJSONBuf

benchmark/benchmark_ffjson.go:223–236  ·  view source on GitHub ↗

Benchmark harness support for STK-REQ-004.

(buf fflib.EncodingBuffer)

Source from the content-addressed store, hash-verified

221
222// Benchmark harness support for STK-REQ-004.
223func (mj *CBGithub) MarshalJSONBuf(buf fflib.EncodingBuffer) error {
224 if mj == nil {
225 buf.WriteString("null")
226 return nil
227 }
228 var err error
229 var obj []byte
230 _ = obj
231 _ = err
232 buf.WriteString(`{"Followers":`)
233 fflib.FormatBits2(buf, uint64(mj.Followers), 10, mj.Followers < 0)
234 buf.WriteByte('}')
235 return nil
236}
237
238const (
239 ffj_t_CBGithubbase = iota

Callers 1

MarshalJSONMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected