Made all VS-recommended changes

This commit is contained in:
2019-02-21 15:30:48 -06:00
parent edc7050279
commit f566b4c468
12 changed files with 60 additions and 59 deletions

View File

@ -12,7 +12,7 @@ namespace ScreenLogicConnect
{
public static void SendHLMessage(this NetworkStream stream, Messages.HLMessage msg)
{
var arr = msg.asByteArray();
var arr = msg.AsByteArray();
System.Diagnostics.Debug.WriteLine($" sent {arr.Length}");
stream.Write(arr, 0, arr.Length);
}
@ -21,7 +21,7 @@ namespace ScreenLogicConnect
{
bw.Write(val.Length);
bw.Write(Encoding.ASCII.GetBytes(val));
bw.Write(new byte[HLMessageTypeHelper.alignToNext4Boundary(val.Length)]);
bw.Write(new byte[HLMessageTypeHelper.AlignToNext4Boundary(val.Length)]);
}
public static void WritePrefixLength(this BinaryWriter bw, byte[] val)