I am reading bytes from a FileStream. When I try to read 0x8000 bytes from the file (which are there) it says:
"Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection."
FileStream file = File.OpenRead("test.nes");
byte[] storage = new byte[0xffff];
file.Read(storage, 0x8000, 0x8000);