MemoryTributary (from http://www.codeproject.com/Articles/348590/A-replacement-for-MemoryStream)
Allow more than int.MaxValue elements
target 64bit for the extra memory
Beginning of an implementation of a memory efficient big ulong array
Completely untested implementation of a memory efficient big ulong array
Basic unit tests for the memory efficient big long array
Rename files to match the class name
Test that an instance of the memory efficient big ulong array can be more than 2GiB
Add missing validation checks
Test the internal method for calculating the minimum number of bits required to store a value
minor fix
minor bug fix
Extra test to demonstrate the remaining set bug(s) lie in mixing the existing byte and new value byte
Fixes to set
Bug Fix: Get/Set now passes all tests
Test writing in reverse order works
Comment explaining how the byte (aligned with how it's written to the stream) is gotten from the supplied value & a worked example to make it a little clearer
Refactor the FourBitDigitArray into the Collections namespace
Modify the FourBitDigitArray to work with more than int.MaxValue entries (if the underlying stream supports it)
Switch to a memory stream implementation that isn't limited to int.MaxValue bytes