Re: Notes when applying IO channel patch



Owen Taylor <otaylor redhat com> writes:
> Tim Janik <timj gtk org> writes:
> 
> > On 30 Jun 2001, Owen Taylor wrote:
> > 
> > > * I exposed GString->alloc, since I think it is necessary for 
> > >   efficient use of a GString as a buffer. Otherwise, you are
> > >   unnecessarily often using smaller buffer sizes than the 
> > >   space you have available.
> > 
> > if we do that, can we please rename this to something more elaborate,
> > e.g. n_bytes, buffer_size or simply n_alloced.
> 
> I went with allocated_len.
> 

How do you use this field? Doesn't GString feel free to put nul bytes
on top of any position > str->len? Or are you supposed to write to
str->len?

Havoc




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