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

Method MarshalJSONBuf

benchmark/benchmark_ffjson.go:685–698  ·  view source on GitHub ↗

Benchmark harness support for STK-REQ-004.

(buf fflib.EncodingBuffer)

Source from the content-addressed store, hash-verified

683
684// Benchmark harness support for STK-REQ-004.
685func (mj *CBName) MarshalJSONBuf(buf fflib.EncodingBuffer) error {
686 if mj == nil {
687 buf.WriteString("null")
688 return nil
689 }
690 var err error
691 var obj []byte
692 _ = obj
693 _ = err
694 buf.WriteString(`{"FullName":`)
695 fflib.WriteJsonString(buf, string(mj.FullName))
696 buf.WriteByte('}')
697 return nil
698}
699
700const (
701 ffj_t_CBNamebase = iota

Callers 6

MarshalJSONMethod · 0.95
MarshalJSONBufMethod · 0.45
MarshalJSONBufMethod · 0.45
MarshalJSONBufMethod · 0.45
MarshalJSONBufMethod · 0.45
MarshalJSONBufMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected