protocol buffers Scalar Value Types
来源:互联网 发布:php隐藏域名跳转代码 编辑:程序博客网 时间:2024/05/01 00:22
https://developers.google.com/protocol-buffers/docs/proto
A scalar message field can have one of the following types – the table shows the type specified in the .proto
file, and the corresponding type in the automatically generated class:
Uses variable-length encoding. Inefficient for
encoding negative numbers
– if your field is likely to have negative values,
use sint32 instead.
int32intintint64Uses variable-length encoding. Inefficient for
encoding negative numbers
– if your field is likely to have negative values,
use sint64 instead.
int64longint/long[3]uint32Uses variable-length encoding.uint32int[1]int/long[3]uint64Uses variable-length encoding.uint64long[1]int/long[3]sint32Uses variable-length encoding. Signed int value.
These more efficiently encode negative numbers
than regular int32s.
int32intintsint64Uses variable-length encoding. Signed int value
. These more efficiently encode negative numbers
than regular int64s.
int64longint/long[3]fixed32Always four bytes. More efficient than uint32
if values
are often greater than 228.
uint32int[1]intfixed64Always eight bytes. More efficient than uint64
if values are often greater than 256.
uint64long[1]int/long[3]sfixed32Always four bytes.int32intintsfixed64Always eight bytes.int64longint/long[3]bool boolbooleanbooleanstringA string must always contain UTF-8 encoded
or 7-bit ASCII text.
stringStringstr/unicode[4]bytesMay contain any arbitrary sequence of bytes.stringByteStringstr- protocol buffers Scalar Value Types
- protocol buffers
- Protocol Buffers
- Protocol Buffers
- Protocol Buffers
- Protocol Buffers
- Protocol Buffers
- Protocol Buffers
- Protocol buffers
- protocol buffers
- Protocol Buffers
- 标量类型(scalar types)初始化
- Unicode scalar value
- protocol buffers开发者向导
- 【转】Protocol Buffers 简介
- Protocol Buffers概览
- (Google)Protocol Buffers概览
- protocol buffers 简介
- linux 下修改 apache 启动的所属用户和组
- 查看java jdk安装路径和设置环境变量
- Exchange 2013的OWA页面出现503错误的解决办法
- javascript原生移动云编程11 - 如何调用手机图库中图片
- layout_wigth详解
- protocol buffers Scalar Value Types
- 使用物理引擎进行碰撞检测
- Json-lib 自定义序列化和反序列化
- 报表制作
- js中获取月份和季度的最后一天
- 统计代码行数
- 表 T006 和 T006_OIB 不匹配
- ZOJ1654
- PHP做301跳转定向