Browse Source

[Modify] Use default type (int)

pull/298/merge
sta 7 months ago
parent
commit
1e46b0da67
  1. 2
      websocket-sharp/Ext.cs
  2. 2
      websocket-sharp/Fin.cs
  3. 2
      websocket-sharp/Mask.cs
  4. 2
      websocket-sharp/Opcode.cs
  5. 2
      websocket-sharp/Rsv.cs
  6. 2
      websocket-sharp/WebSocketFrame.cs

2
websocket-sharp/Ext.cs

@ -585,7 +585,7 @@ namespace WebSocketSharp
|| code == 1015;
}
internal static bool IsSupportedOpcode (this byte opcode)
internal static bool IsSupportedOpcode (this int opcode)
{
return Enum.IsDefined (typeof (Opcode), opcode);
}

2
websocket-sharp/Fin.cs

@ -38,7 +38,7 @@ namespace WebSocketSharp
/// <see href="http://tools.ietf.org/html/rfc6455#section-5.2">
/// Section 5.2</see> of RFC 6455.
/// </remarks>
internal enum Fin : byte
internal enum Fin
{
/// <summary>
/// Equivalent to numeric value 0. Indicates more frames of a message follow.

2
websocket-sharp/Mask.cs

@ -38,7 +38,7 @@ namespace WebSocketSharp
/// <see href="http://tools.ietf.org/html/rfc6455#section-5.2">
/// Section 5.2</see> of RFC 6455.
/// </remarks>
internal enum Mask : byte
internal enum Mask
{
/// <summary>
/// Equivalent to numeric value 0. Indicates not masked.

2
websocket-sharp/Opcode.cs

@ -38,7 +38,7 @@ namespace WebSocketSharp
/// <see href="http://tools.ietf.org/html/rfc6455#section-5.2">
/// Section 5.2</see> of RFC 6455.
/// </remarks>
internal enum Opcode : byte
internal enum Opcode
{
/// <summary>
/// Equivalent to numeric value 0. Indicates continuation frame.

2
websocket-sharp/Rsv.cs

@ -39,7 +39,7 @@ namespace WebSocketSharp
/// <see href="http://tools.ietf.org/html/rfc6455#section-5.2">
/// Section 5.2</see> of RFC 6455.
/// </remarks>
internal enum Rsv : byte
internal enum Rsv
{
/// <summary>
/// Equivalent to numeric value 0. Indicates zero.

2
websocket-sharp/WebSocketFrame.cs

@ -342,7 +342,7 @@ namespace WebSocketSharp
var rsv3 = (header[0] & 0x10) == 0x10 ? Rsv.On : Rsv.Off;
// Opcode
var opcode = (byte) (header[0] & 0x0f);
var opcode = header[0] & 0x0f;
// MASK
var mask = (header[1] & 0x80) == 0x80 ? Mask.On : Mask.Off;

Loading…
Cancel
Save