How to cast binary field in brpc::ThriftService
Open
discussion
- Dominant language
- C++
- Stars
- 17.6k
- Forks
- 4.1k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 69
Description
Hi:
my thrift file:
```
service EchoService {
binary Echo(1:binary request);
}
```
How can i cast `brpc::ThriftFramedMessage*` to `std::string` or `butil::IOBuf`, and cast `std::string` to `brpc::ThriftFramedMessage*`? thank you!
Contributor guide
Research direction
The issue names brpc::ThriftService and brpc::ThriftFramedMessage but provides no file or test. Start by locating those APIs and their existing serialization or conversion paths, then determine whether the requested binary, string, and butil::IOBuf conversions are supported. Done means documenting the supported usage or defining a scoped implementation and test plan.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100