Add buffered read/write methods to MemoryStream