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

Method WriteMessageBegin

lib/go/thrift/simple_json_protocol.go:213–228  ·  view source on GitHub ↗
(ctx context.Context, name string, typeId TMessageType, seqId int32)

Source from the content-addressed store, hash-verified

211}
212
213func (p *TSimpleJSONProtocol) WriteMessageBegin(ctx context.Context, name string, typeId TMessageType, seqId int32) error {
214 p.resetContextStack() // THRIFT-3735
215 if e := p.OutputListBegin(); e != nil {
216 return e
217 }
218 if e := p.WriteString(ctx, name); e != nil {
219 return e
220 }
221 if e := p.WriteByte(ctx, int8(typeId)); e != nil {
222 return e
223 }
224 if e := p.WriteI32(ctx, seqId); e != nil {
225 return e
226 }
227 return nil
228}
229
230func (p *TSimpleJSONProtocol) WriteMessageEnd(ctx context.Context) error {
231 return p.OutputListEnd()

Callers

nothing calls this directly

Calls 5

resetContextStackMethod · 0.95
OutputListBeginMethod · 0.95
WriteStringMethod · 0.95
WriteByteMethod · 0.95
WriteI32Method · 0.95

Tested by

no test coverage detected