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

Afficher le fichier Open project: AdaptiveConsulting/ReactiveTraderCloud

Méthodes publiques

Méthode 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 méthode

public static GetMessageType ( int opCode ) : WebSocketMessageType
opCode int
Résultat WebSocketMessageType

GetOpCode() public static méthode

public static GetOpCode ( WebSocketMessageType messageType ) : int
messageType WebSocketMessageType
Résultat int

MaskInPlace() public static méthode

public static MaskInPlace ( int mask, ArraySegment data ) : void
mask int
data ArraySegment
Résultat void

MaskInPlace() public static méthode

public static MaskInPlace ( int mask, int &maskOffset, ArraySegment data ) : void
mask int
maskOffset int
data ArraySegment
Résultat void

MergeAndMask() public static méthode

public static MergeAndMask ( int mask, ArraySegment header, ArraySegment data ) : byte[]
mask int
header ArraySegment
data ArraySegment
Résultat byte[]

TryValidateUtf8() public static méthode

public static TryValidateUtf8 ( ArraySegment arraySegment, bool endOfMessage, Utf8MessageState state ) : bool
arraySegment ArraySegment
endOfMessage bool
state Utf8MessageState
Résultat bool