Core/Refactor: Part 1

This commit is contained in:
hondacrx
2018-05-07 18:56:09 -04:00
parent b2c1554065
commit 216db1c23a
83 changed files with 298 additions and 296 deletions
+4 -1
View File
@@ -266,7 +266,7 @@ namespace Framework.IO
/// <summary>
/// Writes a string to the packet with a null terminated (0)
/// </summary>
/// <param name="data"></param>
/// <param name="str"></param>
public void WriteCString(string str)
{
if (string.IsNullOrEmpty(str))
@@ -281,6 +281,9 @@ namespace Framework.IO
public void WriteString(string str)
{
if (str.IsEmpty())
return;
byte[] sBytes = Encoding.UTF8.GetBytes(str);
WriteBytes(sBytes);
}