... | ... | @@ -112,8 +112,10 @@ pub enum Type { |
|
|
- 若 len-cnt-1==0 OR len==0: next cnt=0
|
|
|
- 否则: next cnt=cnt+1; next src type, dst type, src xx, dst xx, len... same as cur
|
|
|
- 若 len==0: 说明此行是pad行,则cur的 src type, dst type, src xx, dst xx, len 全部是nil或者默认值
|
|
|
- 若 src type = Zero: 本行的src type id pointer stamp byte 全为0。dst同理。
|
|
|
- 若 src type = Null: 本行的src type id pointer stamp 全为0,byte不做约束。dst同理。
|
|
|
- 若 src type = Zero: 本行的src id pointer stamp byte 全为0。dst type若是Zero,dst xx同理。
|
|
|
- 若 src type = Null: 本行的src id pointer stamp 全为0,byte不做约束。dst type若是Null,dst xx同理。
|
|
|
- 对acc,若cnt=0, acc = byte 。
|
|
|
- 对acc,若cnt!=0, acc = byte + acc_prev * 256 。acc_prev是上一行的acc值。注意,此加法是有限域的加法,因此可能会得到超出有限域的结果而取模。
|
|
|
|
|
|
### Lookup
|
|
|
|
... | ... | |