lirong-Lee commented on issue #351:
URL:
https://github.com/apache/rocketmq-client-cpp/issues/351#issuecomment-814054531
@ifplusor
Is it reasonable to add this paragraph here:
MessageExtPtr MessageDecoder::decode(ByteBuffer& byteBuffer, bool readBody,
bool deCompressBody, bool isClient) {
const char* bytes = byteBuffer.array() + byteBuffer.arrayOffset() +
byteBuffer.position();
if (nullptr == bytes || (byteBuffer.remaining() <2) || !(bytes[0] == 0
&& bytes[1] == 0)) {
return nullptr;
}
....
}
--
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:
[email protected]