public static byte[] ReadAllBytes(this Stream s) { using (s) return s.ReadBytes((int)(s.Length - s.Position)); }