System.Net.WebConnection.CompleteChunkedRead C# (CSharp) Method

CompleteChunkedRead() private method

private CompleteChunkedRead ( ) : bool
return bool
		bool CompleteChunkedRead()
		{
			if (!chunkedRead || chunkStream == null)
				return true;

			while (chunkStream.WantMore) {
				int nbytes = nstream.Read (buffer, 0, buffer.Length);
				if (nbytes <= 0)
					return false; // Socket was disconnected

				chunkStream.Write (buffer, 0, nbytes);
			}

			return true;
  		}