private byte[] read(Stream Stream, long p) { byte[] buffer = new byte[p]; Stream.Read(buffer, 0, (int)p); //TODO: This sucks fix it. return buffer; }