|
|
|
@ -838,6 +838,16 @@ namespace WebSocketSharp
|
|
|
|
: value.Substring (start + 1, len).Replace ("\\\"", "\"");
|
|
|
|
: value.Substring (start + 1, len).Replace ("\\\"", "\"");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
internal static string UTF8Decode (this byte[] bytes)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
return Encoding.UTF8.GetString (bytes);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch {
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
internal static void WriteBytes (this Stream stream, byte[] bytes)
|
|
|
|
internal static void WriteBytes (this Stream stream, byte[] bytes)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
using (var input = new MemoryStream (bytes))
|
|
|
|
using (var input = new MemoryStream (bytes))
|
|
|
|
|