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

来源:互联网 发布:网络聊天各种骗局 编辑:程序博客网 时间:2024/06/05 20:15

15.4 Field Encoding

>>>字段编码
There are 3 types of field encoding operators used or will be used in FAST message. They are default
operator, copy operator and incremental operator.

>>>在FAST消息中,有三种类型的编码操作符,分别是:默认操作符default,拷贝操作符copy和增量操作符incremental.


15.4.1 Default operator

>>>默认操作符default
The default encoding operator specifies that the value of a field is either present in the stream or it will
be the default value.  If the field is optional and without default value, the presence map bit is off
meaning that the input value is absent.

>>>default 说明当前字段的值要么是数据流中自带的,要么是一个默认值.如果这个字段是可选的并且不带默认值,

>>>那么presence map位是off,意味着没有输入值,它是不存在的,缺席的.

 

15.4.2 Constant encoding operator

>>>常量编码操作符Constant
The constant encoding operator specifies that the value of a field is either absent or it is a constant
value.  If the field is mandatory, the input value must be the constant value.  For optional field, the
input value is the constant value if the presence map bit is on while the input value is absent if the
presence map bit is off.

>>>Constant  说明当前字段的值要么是不存在的,缺席的,要么是一个常量值.

>>>如果这个字段是强制的,那么输入值必须是常量值.对于可选字段,如果presence map位是on,则输入值是常量值.

>>>然而如果presence map位是off,则输入值是不存在的,缺席的.

 

15.4.3 Copy coding operator

>>>拷贝编码操作符copy
The copy encoding operator specifies that the value of a field is either copy from previous value or
present in the stream. Input value is present in the stream if the presence bit is on while the input value
is copied from previous value if the presence bit is off.
 

>>>copy 说明当前字段的值要么是先前值的拷贝,要么是数据流中自带的.

>>>如果presence map位是on,则输入值在流中自带,然而如果presence map位是off,则输入值是先前值的拷贝.

 

15.4.4 Increment coding

>>>增量编码操作符incremental
The increment encoding operator specifies that the value of a field is either present in the stream or it
will be the previous value plus increment value. The input value becomes previous value.

>>>incremental 说明当前字段的值要么是流中自带的,要么是先前值加上增量值.这个输入值成为先前值.

 

 

 

 

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