/// <summary> /// Used for quickly reading bytes for a length that is not a multiple of 0x200 /// </summary> public static byte[] ReadBytes(ref Streams.Reader br, long length) { byte[] buffer = br.ReadBytes((int)VariousFunctions.UpToNearest200(length)); List<byte> b = buffer.ToList<byte>(); b.RemoveRange((int)length, buffer.Length - (int)length); buffer = b.ToArray(); return buffer; }