[Mono-list] Re: BinaryReader class
Thu, 15 Aug 2002 07:36:33 -0700 (PDT)
Dick Porter wrote:
> This is a copy of a conversation I had with Serge a day or so ago, about
> some problems I'm having with the BinaryReader class (I asked him,
> because he was the last person to commit code changes here.)
> Do you have any thoughts re. the buffering issue? The .net docs for
> this class are extremely terse, but don't mention any buffering (hence
> my thoughts about leaving that to the underlying stream.)
If I recall correctly, I wrote that class before the other classes necessary to
test it were in place, so if it turns out to be buggy, that's not a huge
surprise. I think I got the idea that it was buffered from the presence of a
"FillBuffer" method documented in the API docs, but it isn't clear whether the
class always buffers some, and the buffer size is just controlled by
"FillBuffer" or if it only buffers when you call "FillBuffer" before reading.
Perhaps it would work better if you do the latter. What does MS's .NET
In any case, since I am now employed by Microsoft, I think it's best if I didn't
contribute further to Mono. Because I'm working on games for the Xbox -- using
plain old unmanaged C++ -- I don't really have any inside knowledge of the .NET
platform, but I would like to be very careful about not doing anything which
could conceivably jeopardize the Mono project.
I'm sorry I'm not much help, and I wish you guys all the luck in the world.