[LAD] easiest way to serialize messages for sending over a ringbuffer?
Paul Davis
paul at linuxaudiosystems.com
Tue Dec 13 13:53:55 UTC 2011
On Mon, Dec 12, 2011 at 11:44 PM, Iain Duncan <iainduncanlists at gmail.com> wrote:
> Yup, what I'm talking about is being able to put a data structure on to the
> ring buffer. It needs be castable to a const *char, so the structure needs
> a way to be converted to a string.
these two statements are not related. in an awful lot of C code,
"pointer to char" means "pointer". in newer better C code, one uses
void*. in newer, better code than that, one doesn't use raw pointers
much at all.
are you working in C or C++ ?
More information about the Linux-audio-dev
mailing list