SkyWay Unity SDK
公式APIリファレンス
|
Provides a set of static methods for websocket-sharp. [詳解]
静的公開メンバ関数 | |
static string | GetDescription (this HttpStatusCode code) |
Gets the description of the specified HTTP status code. | |
static string | GetStatusDescription (this int code) |
Gets the description of the specified HTTP status code. | |
static bool | IsCloseStatusCode (this ushort value) |
Determines whether the specified ushort is in the range of the status code for the WebSocket connection close. | |
static bool | IsEnclosedIn (this string value, char c) |
Determines whether the specified string is enclosed in the specified character. | |
static bool | IsHostOrder (this ByteOrder order) |
Determines whether the specified byte order is host (this computer architecture) byte order. | |
static bool | IsLocal (this System.Net.IPAddress address) |
Determines whether the specified IP address is a local IP address. | |
static bool | IsNullOrEmpty (this string value) |
Determines whether the specified string is null or an empty string. | |
static T[] | SubArray< T > (this T[] array, int startIndex, int length) |
Retrieves a sub-array from the specified array. A sub-array starts at the specified index in the array. | |
static T[] | SubArray< T > (this T[] array, long startIndex, long length) |
Retrieves a sub-array from the specified array. A sub-array starts at the specified index in the array. | |
static void | Times (this int n, Action< int > action) |
Executes the specified delegate n times. | |
static void | Times (this long n, Action< long > action) |
Executes the specified delegate n times. | |
static byte[] | ToHostOrder (this byte[] source, ByteOrder sourceOrder) |
Converts the order of elements in the specified byte array to host (this computer architecture) byte order. | |
static string | ToString< T > (this T[] array, string separator) |
Converts the specified array to a string. | |
static Uri | ToUri (this string value) |
Converts the specified string to a Uri. | |
Provides a set of static methods for websocket-sharp.
|
inlinestatic |
Gets the description of the specified HTTP status code.
code | One of the HttpStatusCode enum values. It specifies the HTTP status code. |
|
inlinestatic |
Gets the description of the specified HTTP status code.
An empty string if the description is not present.
code | An int that specifies the HTTP status code. |
|
inlinestatic |
Determines whether the specified ushort is in the range of the status code for the WebSocket connection close.
The ranges are the following:
true
if value is in the range of the status code for the close; otherwise, false
. value | A ushort to test. |
|
inlinestatic |
Determines whether the specified string is enclosed in the specified character.
true
if value is enclosed in c ; otherwise, false
. value | A string to test. |
c | A char to find. |
|
inlinestatic |
Determines whether the specified byte order is host (this computer architecture) byte order.
true
if order is host byte order; otherwise, false
. order | One of the ByteOrder enum values to test. |
|
inlinestatic |
Determines whether the specified IP address is a local IP address.
This local means NOT REMOTE for the current host.
true
if address is a local IP address; otherwise, false
. address | A System.Net.IPAddress to test. |
ArgumentNullException | address is null . |
|
inlinestatic |
Determines whether the specified string is null
or an empty string.
true
if value is null
or an empty string; otherwise, false
. value | A string to test. |
|
inlinestatic |
Retrieves a sub-array from the specified array. A sub-array starts at the specified index in the array.
array | An array of T from which to retrieve a sub-array. |
startIndex | An int that specifies the zero-based index in the array at which retrieving starts. |
length | An int that specifies the number of elements to retrieve. |
T | The type of elements in the array. |
ArgumentNullException | array is null . |
ArgumentOutOfRangeException | startIndex is less than zero. -or- startIndex is greater than the end of the array. -or- length is less than zero. -or- length is greater than the number of elements from startIndex to the end of the array. |
|
inlinestatic |
Retrieves a sub-array from the specified array. A sub-array starts at the specified index in the array.
array | An array of T from which to retrieve a sub-array. |
startIndex | A long that specifies the zero-based index in the array at which retrieving starts. |
length | A long that specifies the number of elements to retrieve. |
T | The type of elements in the array. |
ArgumentNullException | array is null . |
ArgumentOutOfRangeException | startIndex is less than zero. -or- startIndex is greater than the end of the array. -or- length is less than zero. -or- length is greater than the number of elements from startIndex to the end of the array. |
|
inlinestatic |
Executes the specified delegate n times.
n | An int that specifies the number of times to execute. |
action | An Action<int> delegate to execute. The int parameter is the zero-based count of iteration. |
|
inlinestatic |
Executes the specified delegate n times.
n | A long that specifies the number of times to execute. |
action | An Action<long> delegate to execute. The long parameter is the zero-based count of iteration. |
|
inlinestatic |
Converts the order of elements in the specified byte array to host (this computer architecture) byte order.
source if the number of elements in it is less than 2 or sourceOrder is same as host byte order.
source | An array of byte to convert. |
sourceOrder | One of the ByteOrder enum values. It specifies the order of elements in source . |
ArgumentNullException | source is null . |
|
inlinestatic |
Converts the specified array to a string.
An empty string if array is an empty array.
array | An array of T to convert. |
separator | A string used to separate each element of array . |
T | The type of elements in array . |
ArgumentNullException | array is null . |
|
inlinestatic |
Converts the specified string to a Uri.
null
if the conversion has failed.
value | A string to convert. |