Merge pull request #60 from quamotion/fixes/write-byte

Use Stream.WriteByte, and don't allocate a new byte array
This commit is contained in:
2019-06-12 18:37:27 +01:00
committed by GitHub

View File

@@ -343,9 +343,7 @@ namespace Claunia.PropertyList
internal void Write(int b)
{
byte[] bBytes = new byte[1];
bBytes[0] = (byte)b;
outStream.Write(bBytes, 0, 1);
outStream.WriteByte((byte)b);
count++;
}