本文整理汇总了Golang中github.com/apache/thrift/lib/go/thrift.TProtocol.ReadI32方法的典型用法代码示例。如果您正苦于以下问题:Golang TProtocol.ReadI32方法的具体用法?Golang TProtocol.ReadI32怎么用?Golang TProtocol.ReadI32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类github.com/apache/thrift/lib/go/thrift.TProtocol
的用法示例。
在下文中一共展示了TProtocol.ReadI32方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: ReadField3
func (p *Data) ReadField3(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI32(); err != nil {
return thrift.PrependError("error reading field 3: ", err)
} else {
p.I3 = v
}
return nil
}
示例2: readField1
func (p *Endpoint) readField1(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI32(); err != nil {
return thrift.PrependError("error reading field 1: ", err)
} else {
p.Ipv4 = v
}
return nil
}
示例3: readField2
func (p *ServicePeer) readField2(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI32(); err != nil {
return thrift.PrependError("error reading field 2: ", err)
} else {
p.Port = v
}
return nil
}
示例4: ReadField1
func (p *Endpoint) ReadField1(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI32(); err != nil {
return fmt.Errorf("error reading field 1: %s", err)
} else {
p.Ipv4 = v
}
return nil
}
示例5: ReadField4
func (p *Annotation) ReadField4(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI32(); err != nil {
return fmt.Errorf("error reading field 4: %s", err)
} else {
p.Duration = &v
}
return nil
}
示例6: readField3
func (p *Annotation) readField3(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI32(); err != nil {
return thrift.PrependError("error reading field 3: ", err)
} else {
p.Duration = &v
}
return nil
}
示例7: ReadField5
func (p *ServerInfo) ReadField5(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI32(); err != nil {
return thrift.PrependError("error reading field 5: ", err)
} else {
p.BufferSize = v
}
return nil
}
示例8: readField1
func (p *InvalidOperation) readField1(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI32(); err != nil {
return thrift.PrependError("error reading field 1: ", err)
} else {
p.Code = v
}
return nil
}
示例9: readField3
func (p *BinaryAnnotation) readField3(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI32(); err != nil {
return thrift.PrependError("error reading field 3: ", err)
} else {
temp := AnnotationType(v)
p.AnnotationType = temp
}
return nil
}
示例10: ReadField0
func (p *LogResult) ReadField0(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI32(); err != nil {
return fmt.Errorf("error reading field 0: %s", err)
} else {
temp := ResultCode(v)
p.Success = &temp
}
return nil
}
示例11: ReadField7
func (p *BinaryAnnotation) ReadField7(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI32(); err != nil {
return fmt.Errorf("error reading field 7: %s", err)
} else {
temp := AnnotationType(v)
p.AnnotationType = temp
}
return nil
}
示例12: readField3
func (p *Request) readField3(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI32(); err != nil {
return thrift.PrependError("error reading field 3: ", err)
} else {
temp := Operation(v)
p.Op = temp
}
return nil
}