modified:   MemoryStream.lua