Subject: Re: qtopia
To: Garrett D'Amore <>
From: Christos Zoulas <>
List: tech-kern
Date: 06/06/2006 18:12:00
On Jun 6,  2:31pm, (Garrett D'Amore) wrote:
-- Subject: Re: qtopia

| Regardless of whether or not it is a null-terminated string, as long as
| it is to be treated as an opaque byte array, I think char * is
| preferable. Void * would be used for something that had some other
| structure _other_ than a byte array. But since the consumers of this API
| have to shuffle the data around, they need to know the size, and there
| is no alignment constraint, so char * is still appropriate, IMO.

There could be aligment constraints, for example the blob might have
a short or an int as the size/type of each in front of the binary data
for the element, so void * is better.