G
Guest
Hi,
I am trying to optimize the reading of a huge binary file into a byte[]...
I am doing the following..
byte[] ba = new byte[br.BaseStream.Length];
ba = br.ReadBytes((int)br.BaseStream.Length);
The problem is., BinaryReader.ReadBytes(...) only takes an int wherase
BinaryReader.BaseStream.Length is a long. Why isnt there a ReadBytes that
takes a long?
Chances are I wont reach this problem but the problem will be there none the
less.
I am trying to optimize the reading of a huge binary file into a byte[]...
I am doing the following..
byte[] ba = new byte[br.BaseStream.Length];
ba = br.ReadBytes((int)br.BaseStream.Length);
The problem is., BinaryReader.ReadBytes(...) only takes an int wherase
BinaryReader.BaseStream.Length is a long. Why isnt there a ReadBytes that
takes a long?
Chances are I wont reach this problem but the problem will be there none the
less.