[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: Registering buffers with a qdict

From: Luiz Capitulino
Subject: [Qemu-devel] Re: Registering buffers with a qdict
Date: Fri, 7 May 2010 10:07:58 -0300

On Fri, 07 May 2010 13:45:03 +0200
Jan Kiszka <address@hidden> wrote:

> Hi Luiz,
> what is the recommended way of pushing larger buffers (up to 64K so far)
> into a qdict? QLIST of QINT (one per byte) looks a bit heavy. I thought
> about hex-encoding the content first (series of "%02X"), then
> registering it as QSTRING. Or should we introduce a new type, QBUFFER?

 I don't think that hex-encoding the contents is so bad if your use case is
very specific and isolated.

 On the other hand, I do prefer a QBuffer type, specially because we can
have buffer operations.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]