Q1ngbo opened a new pull request, #3062: URL: https://github.com/apache/brpc/pull/3062
### What problem does this PR solve? Issue Number: #2354 #978 Problem Summary: Hi, We plan to migrate the flatbuffers protocol used internally by Baidu to the community, which is expected to be divided into the following three steps: 1. Submit the data structure SingleIOBuf, which is used for Flatbuffers serialization and deserialization, to the apache/brpc repository; 2. Submit message construction and serialization/deserialization methods to the google/flatbuffers repository; 3. Add Flatbuffers-based RPC handling policy to apache/brpc. These steps have a sequential dependency, and this commit completes the first step. Flatbuffers requires that data to be serialized/deserialized be stored in a contiguous memory buffer. To meet this requirement, we designed SingleIOBuf. Unlike brpc’s existing IOBuf, SingleIOBuf uses a single Block to hold contiguous data, which better aligns with Flatbuffers' memory layout requirements. We also defined corresponding memory allocation and release interfaces to support efficient management of SingleIOBuf. ### What is changed and the side effects? Changed: Side effects: - Performance effects: - Breaking backward compatibility: --- ### Check List: - Please make sure your changes are compilable. - When providing us with a new feature, it is best to add related tests. - Please follow [Contributor Covenant Code of Conduct](https://github.com/apache/brpc/blob/master/CODE_OF_CONDUCT.md). -- 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