---------- Initial Header ----------- From : interfacekit-bounce@xxxxxxxxxxxxx To : interfacekit@xxxxxxxxxxxxx Cc : Date : Tue, 04 Nov 2003 23:48:56 +0100 Subject : [interfacekit] Re: BString patch suggestion and some questions, too > String() and Length() only expose what is stored starting at `_privateData - > 4'. You can e.g. simply allocate four more bytes, set _privateData to the > allocated pointer + 8 and store another int32 at `(int32*)privateData - 2'. > So the amount of additional data that can be stored is limited only by what > malloc() is willing to grant. :-) Uh, yeah, you're right. Not the cleanest thing in the world, if you ask me, though :) > > BTW, AFAIK, Dano actually changes the implementation of BString to add copy > on write or even nicer things (I haven't had a closer look at it yet). Cool! P.S: Is there any showstopper that needs to be worked on ? I mean... I'm currently helping Marc on TextView (which is a huge beast, help is appreciated :))), but I could work on something else if there is more need.