<br><br><div class="gmail_quote">On Mon, Dec 12, 2011 at 7:31 PM, Harry van Haaren <span dir="ltr"><<a href="mailto:harryhaaren@gmail.com">harryhaaren@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div class="im">On Tue, Dec 13, 2011 at 3:24 AM, Iain Duncan <span dir="ltr"><<a href="mailto:iainduncanlists@gmail.com" target="_blank">iainduncanlists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div>I guess I need some kind of serialization to send this over a jack ringbuffer, but I've zero experience with serialization in C++.<br></div></blockquote></div><div><br>I don't really understand what your asking here, you want to be able to set the order of the messages in the ringbuffer?<br>
</div></div></blockquote><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>
<br>Its a FIFO queue, as in First In - First Out. So the order of the messages is the same as you write them...<br>Perhaps I'm misunderstanding you :S<br></div></div></blockquote><div><br></div><div>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. I can't just put my DataMessage structure on there because there is no automatic conversion from my own struct to a string. I know how to do this in Python, but not sure what the best way to do it in C or C++ is.</div>
<div><br></div></div><div>thanks<br>Iain<br></div><div><br></div>