當前位置: 首頁>>代碼示例>>Golang>>正文


Golang TProtocol.ReadI64方法代碼示例

本文整理匯總了Golang中git/apache/org/thrift/git/lib/go/thrift.TProtocol.ReadI64方法的典型用法代碼示例。如果您正苦於以下問題:Golang TProtocol.ReadI64方法的具體用法?Golang TProtocol.ReadI64怎麽用?Golang TProtocol.ReadI64使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在git/apache/org/thrift/git/lib/go/thrift.TProtocol的用法示例。


在下文中一共展示了TProtocol.ReadI64方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: readField1

func (p *NoStdJson) readField1(iprot thrift.TProtocol) error {
	_, _, size, err := iprot.ReadMapBegin()
	if err != nil {
		return thrift.PrependError("error reading map begin: ", err)
	}
	tMap := make(map[int64]string, size)
	p.One = tMap
	for i := 0; i < size; i++ {
		var _key0 int64
		if v, err := iprot.ReadI64(); err != nil {
			return thrift.PrependError("error reading field 0: ", err)
		} else {
			_key0 = v
		}
		var _val1 string
		if v, err := iprot.ReadString(); err != nil {
			return thrift.PrependError("error reading field 0: ", err)
		} else {
			_val1 = v
		}
		p.One[_key0] = _val1
	}
	if err := iprot.ReadMapEnd(); err != nil {
		return thrift.PrependError("error reading map end: ", err)
	}
	return nil
}
開發者ID:peter-edge,項目名稱:lion-go,代碼行數:27,代碼來源:ttypes.go

示例2: ReadField1

func (p *GetLatestChatMessagesArgs) ReadField1(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 1: %s", err)
	} else {
		p.StartDeliverTime = v
	}
	return nil
}
開發者ID:lei-yu,項目名稱:GOPATH,代碼行數:8,代碼來源:chatmanagersync.go

示例3: ReadField4

func (p *GetPrivateMessageListArgs) ReadField4(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 4: %s", err)
	} else {
		p.StartId = v
	}
	return nil
}
開發者ID:lei-yu,項目名稱:GOPATH,代碼行數:8,代碼來源:privatemessagemanagersync.go

示例4: ReadField1

func (p *UpdateReadStatusArgs) ReadField1(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 1: %s", err)
	} else {
		p.Uid = v
	}
	return nil
}
開發者ID:lei-yu,項目名稱:GOPATH,代碼行數:8,代碼來源:privatemessagemanagersync.go

示例5: ReadField2

func (p *GetResourceViewHistoryArgs) ReadField2(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 2: %s", err)
	} else {
		p.StartTime = v
	}
	return nil
}
開發者ID:lei-yu,項目名稱:GOPATH,代碼行數:8,代碼來源:resourcehistorymanager.go

示例6: ReadField6

func (p *DadoTransporteThrift) ReadField6(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 6: %s", err)
	} else {
		p.NumLote = &v
	}
	return nil
}
開發者ID:esusab,項目名稱:integracao,代碼行數:8,代碼來源:ttypes.go

示例7: readField3

func (p *AuditLogEntry) readField3(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 3: %s")
	} else {
		p.Tag = v
	}
	return nil
}
開發者ID:vonwenm,項目名稱:gosnowflake-1,代碼行數:8,代碼來源:ttypes.go

示例8: ReadField4

func (p *FichaVisitaDomiciliarChildThrift) ReadField4(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 4: %s", err)
	} else {
		p.DtNascimento = &v
	}
	return nil
}
開發者ID:esusab,項目名稱:integracao,代碼行數:8,代碼來源:ttypes.go

示例9: ReadField3

func (p *Blog) ReadField3(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 3: %s", err)
	} else {
		p.CreatedTime = v
	}
	return nil
}
開發者ID:amwicfai,項目名稱:go-example,代碼行數:8,代碼來源:ttypes.go

示例10: ReadField1

func (p *GetLiveInfoArgs) ReadField1(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 1: %s", err)
	} else {
		p.Rid = v
	}
	return nil
}
開發者ID:lei-yu,項目名稱:GOPATH,代碼行數:8,代碼來源:livemanager.go

示例11: ReadField0

func (p *SendLiveMessageResult) ReadField0(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 0: %s", err)
	} else {
		p.Success = &v
	}
	return nil
}
開發者ID:lei-yu,項目名稱:GOPATH,代碼行數:8,代碼來源:livemanager.go

示例12: ReadField2

func (p *SendLiveMessageArgs) ReadField2(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 2: %s", err)
	} else {
		p.Uid = v
	}
	return nil
}
開發者ID:lei-yu,項目名稱:GOPATH,代碼行數:8,代碼來源:livemanager.go

示例13: ReadField2

func (p *GetComplaintsArgs) ReadField2(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 2: %s", err)
	} else {
		p.EndCreateTime = v
	}
	return nil
}
開發者ID:lei-yu,項目名稱:GOPATH,代碼行數:8,代碼來源:complaintmanagersync.go

示例14: ReadField3

func (p *GetGroupMessagesArgs) ReadField3(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 3: %s", err)
	} else {
		p.StartMid = v
	}
	return nil
}
開發者ID:lei-yu,項目名稱:GOPATH,代碼行數:8,代碼來源:chatmanagersync.go

示例15: ReadField14

func (p *FichaAtividadeColetivaThrift) ReadField14(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 14: %s", err)
	} else {
		p.AtividadeTipo = &v
	}
	return nil
}
開發者ID:esusab,項目名稱:integracao,代碼行數:8,代碼來源:ttypes.go


注:本文中的git/apache/org/thrift/git/lib/go/thrift.TProtocol.ReadI64方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。