Top "Binaryreader" questions

In .net is a class used to read binary values.

BinaryReader ReadString specifying length?

I'm working on a parser to receive UDP information, parse it, and store it. To do so I'm using a …

c# binaryreader
C# BinaryReader.ReadChar throws "System.ArgumentException: The output char buffer is too small" when reading NetworkStream

When reading C# NetworkStream (from stream-type TCP socket), BinaryReader.ReadChar occasionally throws exceptions System.ArgumentException: The output char buffer is …

c# networkstream binaryreader
Is there a BinaryReader in C++ to read data written from a BinaryWriter in C#?

I've written several ints, char[]s and the such to a data file with BinaryWriter in C#. Reading the file …

c# c++ file-io binaryfiles binaryreader
Using BinaryWriter or BinaryReader in async code

I have a list of float to write to a file. The code below does the thing but it is …

c# async-await binaryreader binarywriter
Reading a UTF-8 File in C#

I have this file, it uses UTF-8 encoding and I am trying to read it. So far, I've used BinaryReader, …

c# file-io utf-8 binaryreader
Efficient way to read big endian data in C#

I use the following code to read BigEndian information using BinaryReader but I'm not sure if it is the efficient …

c# endianness binaryreader
Converting from byte[] to string

I have the following code: using (BinaryReader br = new BinaryReader( File.Open(FILE_PATH, FileMode.Open, FileAccess.ReadWrite))) { int pos = 0; …

c# binaryreader
Is it safe to use Stream.Seek when a BinaryReader is open?

Because of the under the hood buffering strategy of BinaryReader, it is unclear to me whether is it ok or …

c# stream binaryreader