C# Class Microsoft.AspNetCore.WebSockets.Protocol.Utilities

Datei anzeigen Open project: AdaptiveConsulting/ReactiveTraderCloud

Public Methods

Method Description
GetMessageType ( int opCode ) : WebSocketMessageType
GetOpCode ( WebSocketMessageType messageType ) : int
MaskInPlace ( int mask, ArraySegment data ) : void
MaskInPlace ( int mask, int &maskOffset, ArraySegment data ) : void
MergeAndMask ( int mask, ArraySegment header, ArraySegment data ) : byte[]
TryValidateUtf8 ( ArraySegment arraySegment, bool endOfMessage, Utf8MessageState state ) : bool

Method Details

GetMessageType() public static method

public static GetMessageType ( int opCode ) : WebSocketMessageType
opCode int
return WebSocketMessageType

GetOpCode() public static method

public static GetOpCode ( WebSocketMessageType messageType ) : int
messageType WebSocketMessageType
return int

MaskInPlace() public static method

public static MaskInPlace ( int mask, ArraySegment data ) : void
mask int
data ArraySegment
return void

MaskInPlace() public static method

public static MaskInPlace ( int mask, int &maskOffset, ArraySegment data ) : void
mask int
maskOffset int
data ArraySegment
return void

MergeAndMask() public static method

public static MergeAndMask ( int mask, ArraySegment header, ArraySegment data ) : byte[]
mask int
header ArraySegment
data ArraySegment
return byte[]

TryValidateUtf8() public static method

public static TryValidateUtf8 ( ArraySegment arraySegment, bool endOfMessage, Utf8MessageState state ) : bool
arraySegment ArraySegment
endOfMessage bool
state Utf8MessageState
return bool