binaryreader

EndOfStream for BinaryReader

Hi, BinaryReader does not have EndOfStream property. Is it safe to use following code to check if end of stream is reached? reader.BaseStream.Length>reader.BaseStream.Position ...

BinaryReader.ReadUInt16() is very slow c#

Hi, I have just profiled my application and I am reading a memorystream using ReadUInt16(). It is very costly on time. Does anyone know of an alternative - or any way to speed it up? Edit Hi, sorry - I made a mistake, although I was running app not in debug mode, my properties were not set to 64bit cpu and Active(release) - changing t...

What does the FillBuffer method of BinaryReader do?

According to the documentation: Fills the internal buffer with the specified number of bytes read from the stream. What does this mean (what's the internal buffer?)? ...