Re: [API Proposal] Record reading functions returning std::optional

2025-04-01 Thread Chris McFarlen
+1 Sent with Proton Mail secure email. On Monday, March 31st, 2025 at 6:13 AM, Hiroaki Nakamura wrote: > Hi, > > I'd like to change the third API from > > RecErrT RecGetRecordString(const char *name, char > *buf, int buf_len, bool lock = true); > > to > > std::optionalstd::string_view Rec

Re: [API Proposal] Record reading functions returning std::optional

2025-03-31 Thread Hiroaki Nakamura
Hi, I'd like to change the third API from RecErrTRecGetRecordString(const char *name, char *buf, int buf_len, bool lock = true); to std::optional RecGetRecordString(const char *name, char *buf, int buf_len, bool lock = true); as suggested by https://github.com/apache/traffi

[API Proposal] Record reading functions returning std::optional

2025-03-30 Thread Hiroaki Nakamura
Hi, I'd like to propose new APIs for record reading functions which return std::optional. std::optional RecGetRecordInt(const char *name, bool lock = true); std::optionalRecGetRecordFloat(const char *name, bool lock = true); RecErrTRecGetRecordString(const char *name,