Article View: borland.public.cppbuilder.internet.socket
Article #3258Re: i need ideas/comments with tclientsocket
From: Remy Lebeau (TeamB)
Date: Tue, 01 Nov 2005 02:25
Date: Tue, 01 Nov 2005 02:25
14 lines
1578 bytes
1578 bytes
"Hans Galema" <notused@notused.nl> wrote in message news:43668460@newsgroups.borland.com... > if ( MemoryStream->Position + receivelength >= MemoryStream->Size ) > MemoryStream->Size += receivelength + 1; // +1 is not needed I think No, +1 is not needed. Neither is checking the (Position + receivelength), either. TMemoryStream's Size property sets the Capacity property, which already checks the new size before actually allocating memory. TMemoryStream allocates its Memory in 8K chunks. Gambit
Technical Details
Message-ID:
<4366d220$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.97.78.MISMATCH!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43662baf$1@newsgroups.borland.com> <43664511@newsgroups.borland.com> <4366672a$1@newsgroups.borland.com> <43668460@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5c33b8c6a9ca7fdb X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <43662baf$1@newsgroups.borland.com> <43664511@newsgroups.borland.com> <4366672a$1@newsgroups.borland.com> <43668460@newsgroups.borland.com> Subject: Re: i need ideas/comments with tclientsocket Date: Mon, 31 Oct 2005 18:25:38 -0800 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4366d220$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1130811936 68.69.17.41 (31 Oct 2005 18:25:36 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.97.78.MISMATCH!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail