[hxcommon] Re: CR (hxbuffer.cpp)

[hxcommon] Re: CR (hxbuffer.cpp)

Scott Blachowicz scott at mail.dsab.rresearch.com
Thu Jul 3 19:46:31 PDT 2003


"Jonathan H.H. Bloedow" <jbloedow at real.com> wrote:

> This change is designed to allow the CHXBuffer to keep track of the size of 
> the allocation(s) that it has made so that if a buffer is resized down 
> below its actual allocation size, it can be resized back up to the original 
> allocation size without doing a completely unnecessary reallocation.
> 
> Please let me know if you see any problems with this implementation.

Would it make more sense to manage m_ulAllocLength in the Allocate(),
Reallocate() and Deallocate() methods?

Also...for whoever ends up messing with the binary dist libs, since this adds
a member to a public header file that could get used by both the dist libs and
the public source code...builds might break.  Does the code going into the
binary dist libs all deal with IHXBuffer?  Or does some of it deal with
CHXBuffer directly?

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe at common.helixcommunity.org
For additional commands, e-mail: dev-help at common.helixcommunity.org




More information about the Common-dev mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.