Метод | Описание | |
---|---|---|
TryDecodeCloseReason ( byte closePayload, ushort &statusCode, string &reason ) : bool | ||
TryDecodeHeader ( byte buffer, int &dataStart, int end, bool &isFin, OpCode &opCode, bool &isMasked, int &payloadLength, byte mask ) : bool | ||
TryDecodePayload ( byte buffer, int &start, int end, int payloadLength, bool isMasked, byte mask ) : bool |
Метод | Описание | |
---|---|---|
GetOpCode ( int b ) : OpCode |
public static TryDecodeCloseReason ( byte closePayload, ushort &statusCode, string &reason ) : bool | ||
closePayload | byte | |
statusCode | ushort | |
reason | string | |
Результат | bool |
public static TryDecodeHeader ( byte buffer, int &dataStart, int end, bool &isFin, OpCode &opCode, bool &isMasked, int &payloadLength, byte mask ) : bool | ||
buffer | byte | |
dataStart | int | |
end | int | |
isFin | bool | |
opCode | OpCode | |
isMasked | bool | |
payloadLength | int | |
mask | byte | |
Результат | bool |
public static TryDecodePayload ( byte buffer, int &start, int end, int payloadLength, bool isMasked, byte mask ) : bool | ||
buffer | byte | |
start | int | |
end | int | |
payloadLength | int | |
isMasked | bool | |
mask | byte | |
Результат | bool |