[Modify] Add ReadBytesAsync2 method
Merge a part of pull request #153 from fd5fc9a5fc
.
This commit is contained in:
parent
c6243a14d9
commit
577ea14ffd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user