This commit is contained in:
2023-10-13 14:15:26 +09:00
parent 044ace6552
commit d4dc58c609
28 changed files with 359 additions and 18 deletions

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace STcpHelper.Utility
{
internal class SEncoding
{
public static string GetString(byte[] bytes, int index, int length)
{
return Encoding.UTF8.GetString(bytes, index, length);
}
public static byte[] GetBytes(string s)
{
return Encoding.UTF8.GetBytes(s);
}
}
}