Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Buffer sizing: What is a good value for long strings ? (uci moves)

Author: Russell Reagan

Date: 22:03:03 03/01/05

Go up one level in this thread


On February 28, 2005 at 16:05:33, Daniel Mehrmannn wrote:

>Hello,
>
>well, i can't believe it, but it happend:
>UCI sending usually position startpos <moves> in a running game.
>This could be a really long string. At the moment i'm using a buffer of
>256 bytes to read this stuff. I was suprised that's not enought. Homer can plays
>around 50 moves before the buffer is to small.
>
>Well, these values let me think that i need more then 1024 bytes for a real long
>game.
>
>So, here are my question: Which buffer size do you use in your engine to be sure
> to get all data in your buffer ?
>
>What would be a good standard value ?
>
>Thanks,
>
>daniel


Why not use a dynamic string that can grow as large as necessary?



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.