feat: add new context menu items
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
using System.Text;
|
||||
|
||||
namespace ChatTwo.Util;
|
||||
|
||||
internal static class StringUtil {
|
||||
internal static byte[] ToTerminatedBytes(this string s) {
|
||||
var unterminated = Encoding.UTF8.GetBytes(s);
|
||||
var bytes = new byte[unterminated.Length + 1];
|
||||
Array.Copy(unterminated, bytes, unterminated.Length);
|
||||
bytes[^1] = 0;
|
||||
return bytes;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user