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 2020/05/21 03:39:22 UTC

[GitHub] [dubbo-go-hessian2] champly commented on issue #189: how to rewrite attachment

champly commented on issue #189:
URL: https://github.com/apache/dubbo-go-hessian2/issues/189#issuecomment-631860036


   ## solve
   
   ### decode
   
   1. use `hessian.NewDecoderWithSkip` Decode dubboVersion/path/version/method/argsTypes/args/attachment info.
   2. create hessian encode object, encode attachment.
   3. calc encode len
   
   ### encode
   
   1. encode.Append(payload[len(payload]-attachment_encode_len)
   2. encode.Encode(attachment)


----------------------------------------------------------------
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.

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