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

Method WriteString

lib/go/thrift/binary_protocol.go:245–252  ·  view source on GitHub ↗
(ctx context.Context, value string)

Source from the content-addressed store, hash-verified

243}
244
245func (p *TBinaryProtocol) WriteString(ctx context.Context, value string) error {
246 e := p.WriteI32(ctx, int32(len(value)))
247 if e != nil {
248 return e
249 }
250 _, err := p.trans.WriteString(value)
251 return NewTProtocolException(err)
252}
253
254func (p *TBinaryProtocol) WriteBinary(ctx context.Context, value []byte) error {
255 e := p.WriteI32(ctx, int32(len(value)))

Callers 1

WriteMessageBeginMethod · 0.95

Calls 3

WriteI32Method · 0.95
NewTProtocolExceptionFunction · 0.85
WriteStringMethod · 0.65

Tested by

no test coverage detected