C# Class vtortola.WebSockets.Rfc6455.WebSocketFrameHeaderFlags

Mostra file Open project: vtortola/WebSocketListener Class Usage Examples

Public Methods

Method Description
GetBit ( byte aByte, int pos ) : bool
SetBit ( byte &aByte, int pos, bool value ) : void
ToBytes ( System.Int64 length, Byte buffer, Int32 offset ) : void
TryParse ( Byte buffer, Int32 offset, WebSocketFrameHeaderFlags &headerFlags ) : System.Boolean
WebSocketFrameHeaderFlags ( bool isComplete, WebSocketFrameOption option, WebSocketExtensionFlags extensionFlags ) : System

Private Methods

Method Description
WebSocketFrameHeaderFlags ( Byte byte1, Byte byte2, WebSocketFrameOption option ) : System

Method Details

GetBit() public static method

public static GetBit ( byte aByte, int pos ) : bool
aByte byte
pos int
return bool

SetBit() public static method

public static SetBit ( byte &aByte, int pos, bool value ) : void
aByte byte
pos int
value bool
return void

ToBytes() public method

public ToBytes ( System.Int64 length, Byte buffer, Int32 offset ) : void
length System.Int64
buffer Byte
offset System.Int32
return void

TryParse() public static method

public static TryParse ( Byte buffer, Int32 offset, WebSocketFrameHeaderFlags &headerFlags ) : System.Boolean
buffer Byte
offset System.Int32
headerFlags WebSocketFrameHeaderFlags
return System.Boolean

WebSocketFrameHeaderFlags() public method

public WebSocketFrameHeaderFlags ( bool isComplete, WebSocketFrameOption option, WebSocketExtensionFlags extensionFlags ) : System
isComplete bool
option WebSocketFrameOption
extensionFlags WebSocketExtensionFlags
return System