MCPcopy Create free account
hub / github.com/apache/thrift / OutputObjectBegin

Method OutputObjectBegin

lib/go/thrift/simple_json_protocol.go:760–769  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

758}
759
760func (p *TSimpleJSONProtocol) OutputObjectBegin() error {
761 if e := p.OutputPreValue(); e != nil {
762 return e
763 }
764 if _, e := p.write(JSON_LBRACE); e != nil {
765 return NewTProtocolException(e)
766 }
767 p.dumpContext.push(_CONTEXT_IN_OBJECT_FIRST)
768 return nil
769}
770
771func (p *TSimpleJSONProtocol) OutputObjectEnd() error {
772 if _, e := p.write(JSON_RBRACE); e != nil {

Callers 4

WriteStructBeginMethod · 0.95
WriteStructBeginMethod · 0.80
WriteFieldBeginMethod · 0.80
WriteMapBeginMethod · 0.80

Calls 4

OutputPreValueMethod · 0.95
writeMethod · 0.95
NewTProtocolExceptionFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected