[Modify] Add ReadBytesAsync2 method
Merge a part of pull request #153 from fd5fc9a5fc.
			
			
This commit is contained in:
		| @@ -660,6 +660,12 @@ namespace WebSocketSharp | |||||||
|         null); |         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) |     internal static string RemovePrefix (this string value, params string[] prefixes) | ||||||
|     { |     { | ||||||
|       var idx = 0; |       var idx = 0; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user