You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/03/07 07:05:15 UTC

[GitHub] [dubbo-go-hessian2] LaurenceLiZhixin opened a new issue #310: Decode 阶段,'B' (byte) 标会被解析为 int32

LaurenceLiZhixin opened a new issue #310:
URL: https://github.com/apache/dubbo-go-hessian2/issues/310


   这一行负责解析为int32
   https://github.com/apache/dubbo-go-hessian2/blob/c18594c8ecd05dbd953d68ab1fab03d4a1d6c6e5/decode.go#L273
   位置位于解析byte之前:
   https://github.com/apache/dubbo-go-hessian2/blob/c18594c8ecd05dbd953d68ab1fab03d4a1d6c6e5/decode.go#L295
   
   而'B' byte 标会优先进入int32的处理分支,被解析为int32,因为'B' == 0x91 ,符合int32的第一个条件。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go-hessian2] wongoo commented on issue #310: Decode 阶段,'B' (byte) 标会被解析为 int32

Posted by GitBox <gi...@apache.org>.
wongoo commented on issue #310:
URL: https://github.com/apache/dubbo-go-hessian2/issues/310#issuecomment-1060321295


   @LaurenceLiZhixin  `B` is 0x42


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go-hessian2] wongoo commented on issue #310: Decode 阶段,'B' (byte) 标会被解析为 int32

Posted by GitBox <gi...@apache.org>.
wongoo commented on issue #310:
URL: https://github.com/apache/dubbo-go-hessian2/issues/310#issuecomment-1060308210


   @LaurenceLiZhixin can u provide a demo for this issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go-hessian2] wongoo closed issue #310: Decode 阶段,'B' (byte) 标会被解析为 int32

Posted by GitBox <gi...@apache.org>.
wongoo closed issue #310:
URL: https://github.com/apache/dubbo-go-hessian2/issues/310


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org