[Modify] Add ReadBytesAsync2 method

Merge a part of pull request #153 from fd5fc9a5fc.
This commit is contained in:
sta 2015-09-09 11:22:29 +09:00
parent c6243a14d9
commit 577ea14ffd

View File

@ -660,6 +660,12 @@ namespace WebSocketSharp
null);
}
internal static void ReadBytesAsync2 (
this Stream stream, int length, Action<byte[]> completed, Action<Exception> error)
{
stream.readBytesAsync (new byte[length], 0, length, completed, error);
}
internal static string RemovePrefix (this string value, params string[] prefixes)
{
var idx = 0;