提交 e2e5d4b7 编写于 作者: Y youngwolf

prefix_suffix packer and unpacker satisfy asio 1.11

上级 a68f14ea
...@@ -394,8 +394,7 @@ public: ...@@ -394,8 +394,7 @@ public:
else if (remain_len > 0) else if (remain_len > 0)
memcpy(&*std::begin(raw_buff), pnext, remain_len); //left behind unparsed msg memcpy(&*std::begin(raw_buff), pnext, remain_len); //left behind unparsed msg
//if unpacking failed, successfully parsed msgs will still returned via msg_can(sticky package), please note. return true;
return unpack_ok;
} }
//a return value of 0 indicates that the read operation is complete. a non-zero value indicates the maximum number //a return value of 0 indicates that the read operation is complete. a non-zero value indicates the maximum number
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册