mirror of
https://github.com/claunia/plist-cil.git
synced 2025-12-16 11:04:26 +00:00
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:
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user