本文整理匯總了Golang中thrift.TProtocol.ReadI32方法的典型用法代碼示例。如果您正苦於以下問題:Golang TProtocol.ReadI32方法的具體用法?Golang TProtocol.ReadI32怎麽用?Golang TProtocol.ReadI32使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類thrift.TProtocol
的用法示例。
在下文中一共展示了TProtocol.ReadI32方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: ReadField8
func (p *ContainerOfEnums) ReadField8(iprot thrift.TProtocol) (err thrift.TProtocolException) {
v14, err15 := iprot.ReadI32()
if err15 != nil {
return thrift.NewTProtocolExceptionReadField(8, "default_eighth", p.ThriftName(), err15)
}
p.DefaultEighth = DefinedValues(v14)
return err
}
示例2: ReadField9
func (p *ContainerOfEnums) ReadField9(iprot thrift.TProtocol) (err thrift.TProtocolException) {
v16, err17 := iprot.ReadI32()
if err17 != nil {
return thrift.NewTProtocolExceptionReadField(9, "default_nineth", p.ThriftName(), err17)
}
p.DefaultNineth = HeterogeneousValues(v16)
return err
}
示例3: ReadField6
func (p *ContainerOfEnums) ReadField6(iprot thrift.TProtocol) (err thrift.TProtocolException) {
v10, err11 := iprot.ReadI32()
if err11 != nil {
return thrift.NewTProtocolExceptionReadField(6, "optional_sixth", p.ThriftName(), err11)
}
p.OptionalSixth = HeterogeneousValues(v10)
return err
}
示例4: ReadField7
func (p *ContainerOfEnums) ReadField7(iprot thrift.TProtocol) (err thrift.TProtocolException) {
v12, err13 := iprot.ReadI32()
if err13 != nil {
return thrift.NewTProtocolExceptionReadField(7, "default_seventh", p.ThriftName(), err13)
}
p.DefaultSeventh = UndefinedValues(v12)
return err
}
示例5: ReadField5
func (p *ContainerOfEnums) ReadField5(iprot thrift.TProtocol) (err thrift.TProtocolException) {
v8, err9 := iprot.ReadI32()
if err9 != nil {
return thrift.NewTProtocolExceptionReadField(5, "optional_fifth", p.ThriftName(), err9)
}
p.OptionalFifth = DefinedValues(v8)
return err
}
示例6: ReadField4
func (p *ContainerOfEnums) ReadField4(iprot thrift.TProtocol) (err thrift.TProtocolException) {
v6, err7 := iprot.ReadI32()
if err7 != nil {
return thrift.NewTProtocolExceptionReadField(4, "optional_fourth", p.ThriftName(), err7)
}
p.OptionalFourth = UndefinedValues(v6)
return err
}
示例7: ReadField3
func (p *ContainerOfEnums) ReadField3(iprot thrift.TProtocol) (err thrift.TProtocolException) {
v4, err5 := iprot.ReadI32()
if err5 != nil {
return thrift.NewTProtocolExceptionReadField(3, "third", p.ThriftName(), err5)
}
p.Third = HeterogeneousValues(v4)
return err
}
示例8: ReadField2
func (p *ContainerOfEnums) ReadField2(iprot thrift.TProtocol) (err thrift.TProtocolException) {
v2, err3 := iprot.ReadI32()
if err3 != nil {
return thrift.NewTProtocolExceptionReadField(2, "second", p.ThriftName(), err3)
}
p.Second = DefinedValues(v2)
return err
}
示例9: ReadField1
func (p *ContainerOfEnums) ReadField1(iprot thrift.TProtocol) (err thrift.TProtocolException) {
v0, err1 := iprot.ReadI32()
if err1 != nil {
return thrift.NewTProtocolExceptionReadField(1, "first", p.ThriftName(), err1)
}
p.First = UndefinedValues(v0)
return err
}