Use MemoryStream instead. It has a constructor that takes a char[] even
though I notice that isn't listed in the doc. I will send Walter a update
for that.
The error using TArrayStream is probably due to building in debug mode but
linking against a non-debug build of phobos. So I'll probably remove
TArrayStream from the doc since it is a pain to work with (you must
pass -release to dmd). Either that or dmd.zip needs to include debug and
non-debug builds of phobos.