private new void ReadChunked(Stream stream) { int num = ReadChunkLength(stream); byte[] array = new byte[num]; while (num != 0) { if (array.Length < num) { Array.Resize(ref array, num); } int num2 = 0; do { int num3 = stream.Read(array, num2, num - num2); if (num3 == 0) { throw new Exception("The remote server closed the connection unexpectedly!"); } num2 += num3; }while (num2 < num); FeedData(array, num2); HTTPResponse.ReadTo(stream, 10); num = ReadChunkLength(stream); } ReadHeaders(stream); }