{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "I can't simply use CopyTo which is a function in `class Stream` since .NET 4. It throws an error because rather then returning 0 when the stream ends it returns -1 which .NET thinks is an error and throws an exception. \n\n            using (var mem = new MemoryStream())\n            {\n                using (var memin = new MemoryStream(arr))\n                using (var comp = new BZip2InputStream(memin))\n                {\n                    comp.CopyTo(mem, 4096);",
    "LastUpdatedDate": "2014-02-21T07:00:49.363-08:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Unassigned",
      "Severity": 0,
      "Id": 0
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2013-07-24T02:51:07.273-07:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Change stream return from -1 to 0",
    "Type": {
      "Name": "Unassigned",
      "Id": 5
    },
    "VoteCount": 1,
    "Id": 16332
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "Any updates on that? Seemed to work in 1.9.1.8.",
      "PostedDate": "2014-02-21T07:00:49.363-08:00",
      "Id": -2147483648
    }
  ]
}