TousakaRin commented on issue #2612: URL: https://github.com/apache/brpc/issues/2612#issuecomment-2076287310
如果是为了压缩可以参考 brpc/policy/gzip_compress.cpp, 计算crc的话,可以考虑调用IOBuf::copy_to/to_string等接口。直接读取backing_block_num也是可行的,参考IOBuf::copy_to的实现提取数据即可 -- 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: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org