MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / writeField2

Method writeField2

common/common.go:4018–4026  ·  view source on GitHub ↗
(ctx context.Context, oprot thrift.TProtocol)

Source from the content-addressed store, hash-verified

4016}
4017
4018func (p *TFile) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) {
4019 if err := oprot.WriteFieldBegin(ctx, "file", thrift.STRING, 2); err != nil {
4020 return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:file: ", p), err) }
4021 if err := oprot.WriteBinary(ctx, p.File); err != nil {
4022 return thrift.PrependError(fmt.Sprintf("%T.file (2) field write error: ", p), err) }
4023 if err := oprot.WriteFieldEnd(ctx); err != nil {
4024 return thrift.PrependError(fmt.Sprintf("%T write field end error 2:file: ", p), err) }
4025 return err
4026}
4027
4028func (p *TFile) Equals(other *TFile) bool {
4029 if p == other {

Callers 1

WriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected