Re: pn_data_format

2015-02-14 Thread Rafael Schloming
inside the pn_string_t for you. --Rafael On Sat, Feb 14, 2015 at 2:40 AM, Fraser Adams wrote: > Hello Mikhail, > I'm not an expert on pn_data_format and TBH I've never used it in pure C > code, only to write other language bindings. I don't know if it's possibl

Re: pn_data_format

2015-02-14 Thread Fraser Adams
Hello Mikhail, I'm not an expert on pn_data_format and TBH I've never used it in pure C code, only to write other language bindings. I don't know if it's possible to find out beforehand. My guess is probably not - the python binding (which is fairly canonical) looks like t

pn_data_format

2015-02-13 Thread Michael Ivanov
Hallo, I am trying to use proton routine for data formatting. pn_data_format checks suire of provided buffer and in case it is not enough just refuses to copy anything at all. Is it possible to find out how much does it need beforehand? Ideally would be if one had the possibility to get the