During testing with archives from Fallout 4 I discovered that the integer "count" in "StreamExtensions.cs" can overflow resulting in an "Index out of bounds" exception. This can be fixed by making "count" a long and chunking the data read from "stream".