[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-libunistring] Avoiding heap allocations in ‘u32_conv_from_encod
From: |
Bruno Haible |
Subject: |
Re: [bug-libunistring] Avoiding heap allocations in ‘u32_conv_from_encoding’ |
Date: |
Wed, 14 Jul 2010 01:36:44 +0200 |
User-agent: |
KMail/1.9.9 |
Hi Ludo,
> Can you also comment on this:
>
> > BTW, it’s unclear to me from the manual whether RESULT_LEN above should
> > be the size in bytes or the size in uint32_t.
It's documented in chapter 2 "Conventions" of the manual [1]. The *LENGTHP
value indicates the string length in units (i.e. uint32_t in this case).
Bruno
[1] http://www.gnu.org/software/libunistring/manual/html_node/Conventions.html