Baowei Du

Results 3 comments of Baowei Du

这种计算方式,对使用者来说,要求有点高。必须先理解这4-5个字段的含义后,才能正确使用。感觉还是有改进的空间。特别是length_adjustment 可以为负值这点。 另外,一定要设置这个assert的目的是什么呢?如果按照上例的配置方式,有何不妥之处呢?

> * lengthFieldOffset = 0 > * lengthFieldLength = 2 > * lengthAdjustment = -2 (= the length of the Length field) > * initialBytesToStrip = 0 netty中的 “initialBytesToStrip ”比较容易理解。目前咱们代码中是header和body来区分字段,这两个字段含义可能会理解不一样。...

> Yes, it's same in a way. But I only format the 'float' type, and it could be normal when object is 'integer' Besides that, I don't add any element...