From 0259555dea3239e66c95a89cf89c5e283d2b585a Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 30 Jun 2019 21:07:43 +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 f94981be..70f2d7fd 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -503,6 +503,11 @@ namespace WebSocketSharp return idx > 0 ? nameAndValue.Substring (0, idx).Trim () : null; } + internal static string GetUTF8DecodedString (this byte[] bytes) + { + return Encoding.UTF8.GetString (bytes); + } + /// /// Gets the value from the specified string that contains a pair of /// name and value separated by a character.