Re: pseudo-specs for a String class

From: Kinkie <gkinkie_at_gmail.com>
Date: Sun, 31 Aug 2008 23:36:54 +0200

On Sun, Aug 31, 2008 at 11:21 PM, Henrik Nordstrom
<henrik_at_henriknordstrom.net> wrote:
> On sön, 2008-08-31 at 14:07 +0200, Kinkie wrote:
>
>> Now I'm a bit at a loss as to how to best integrate with iostream.
>
> For what?
>
> We need to be able to dump the contents in debugs which is easily
> implemented as an << operator using the already defined interface. What
> other uses of iostream do we have in relation to KBuf?

My target would be a stream-based alternative to appendf().

> also missing a length query method it seems..

Heh, you're right..

> Another minor note: To follow normal coding conventions size_t shold be
> used for buffer sizes, not hardcoded type sizes (u_int32_t)..

Ok, I'll change that.

-- 
 /kinkie
Received on Sun Aug 31 2008 - 21:36:56 MDT

This archive was generated by hypermail 2.2.0 : Mon Sep 01 2008 - 12:00:06 MDT