From 639d78fd13ac9803e20bab57dc5f1a01c46c64e5 Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 30 Jun 2019 21:11:56 +0900 Subject: [PATCH] [Modify] Add it --- websocket-sharp/Ext.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 70f2d7fd..adca34b2 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -508,6 +508,11 @@ namespace WebSocketSharp return Encoding.UTF8.GetString (bytes); } + internal static byte[] GetUTF8EncodedBytes (this string s) + { + return Encoding.UTF8.GetBytes (s); + } + /// /// Gets the value from the specified string that contains a pair of /// name and value separated by a character.