add AutoFlush property, and not sure why WriteCharArray() was commented out there

This commit is contained in:
Michael Becker 2021-01-09 22:42:09 -05:00
parent f439eb6513
commit 4be7554144
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C

View File

@ -60,8 +60,13 @@ namespace UniversalEditor.IO
data = Transformations[i].Transform(data);
}
Write(data, 0, data.Length);
if (AutoFlush)
Flush();
}
public bool AutoFlush { get; set; } = false;
[CLSCompliant(false)]
public void WriteSBytes(sbyte[] data)
{
@ -637,7 +642,7 @@ namespace UniversalEditor.IO
}
else if (objectType == typeof(Char[]))
{
// WriteCharArray((char[])value);
WriteCharArray((char[])value);
return;
}
else if (objectType == typeof(Single))