(ctx context.Context, name string, typeId TMessageType, seqId int32)
| 211 | } |
| 212 | |
| 213 | func (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 | |
| 230 | func (p *TSimpleJSONProtocol) WriteMessageEnd(ctx context.Context) error { |
| 231 | return p.OutputListEnd() |
nothing calls this directly
no test coverage detected