SSE Level 2 Vendor Interface Specification(FAST)-15章-FAST Decoder(FAST解析-第三部分)

来源:互联网 发布:web安全书籍推荐 知乎 编辑:程序博客网 时间:2024/05/29 15:32

15.5 Transfer encoding

>>>传输编码
The stop-bit and presence map are used in transfer encoding.

>>>stop-bit 和presence map 在传输编码中被使用.
 
15.5.1 Stop bit

>>>停止位
Stop bit is using the high order bit of each type to indicate whether this byte is the final byte for
representing a value. If the high order bit is ‘1’, it is the final byte for representing this value.
However, for byte vector data type and UTF-8 String cannot use stop bit as the data contained in these
two types is binary.  It is costly to use stop bit, so an unsigned integer length field is added before
these two types.

>>>stop-bit 使用每一个类型的高阶位来指示这个byte是否是表现值的最后byte.如果高阶位是'1',则它是表现值的最后byte.

>>>无论如何,对于byte vector数据类型和UTF-8 String不能使用stop-bit ,因为这两种类型所包含的数据是二进制的.

>>>使用stop-bit 是昂贵的,所以在这两种类型前增加一个无符号整形的长度字段.

 

15.5.1.1  String data type

>>>String数据类型
String data type is used for storing ASCII String fields. ASCII is represented by one or more bytes
with 7 significant data bits per byte. So that, the high order bit can be used as stop bit.
>>>String数据类型用于存储ASCII String字段.ASCII是通过一个或多个bytes来呈现的,每个byte使用7个有效数据位.

>>>所以,高阶位能用来当stop-bit .

 


Here is the example for String data type:

>>>String数据类型的例子:


 
15.5.1.2  Signed integer data type

 

>>>有符号整型
A signed integer data type is used for the two’s complement integer representation. The high order bit
can be used as stop bit and the most significant data bit of the first bye is a sign bit.

>>>

 

Here is the example for Signed integer data type:

 

>>>有符号整型的例子:

 

 >>>如果这个字段是可选的并且是一个正数,则递增1.

 

 

15.5.1.3  Byte vector data type

>>>Byte vector数据类型
Byte vector data type is used for storing binary data. The stop bit approach is not used and there is a
signed integer length field is added before the binary data.

>>>Byte vector数据类型用于存储二进制数据.停止位的方法是不被使用的,并且在二进制数据之前增加了一个有符号整型长度字段.

 

15.5.1.4  Signed long data type

>>>有符号长整型
A signed long data type is used for the two’s complement long representation. The high order bit can
be used as stop bit and the most significant data bit of the first bye is a sign bit.

>>>
 
Here is the example for Signed long data type:

>>>有符号长整型的例子:

>>>如果这个字段是可选的并且是一个正数,则递增1. 

 

15.5.1.5  UTF-8 String data type

>>>UTF-8 String
UTF-8 String data type is used for storing UTF-8 String data. The stop bit approach is not used and
there is a signed integer length field is added before the binary data.

>>>UTF-8 String用于存储UTF-8 String数据.stop bit 的方法是不被使用的,并且在二进制数据之前增加了一个有符号整型长度字段.

 

 

SSE Level 2 Vendor Interface Specification(FAST)-15章-FAST Decoder(FAST解析-第三部分)--完

 

原创粉丝点击