C# Class Animatroller.Framework.Expander.PacketManager

Mostra file Open project: HakanL/animatroller Class Usage Examples

Public Methods

Method Description
PacketManager ( byte headerPattern, byte trailerPattern ) : System
WriteNewData ( byte buf ) : void

Protected Methods

Method Description
GetContentSize ( byte buf, int size ) : int?
RaisePacketReceived ( byte packetData, int size ) : void
Reset ( ) : void

Private Methods

Method Description
KillBufferStart ( int bytesToKill ) : void

Method Details

GetContentSize() protected abstract method

protected abstract GetContentSize ( byte buf, int size ) : int?
buf byte
size int
return int?

PacketManager() public method

public PacketManager ( byte headerPattern, byte trailerPattern ) : System
headerPattern byte
trailerPattern byte
return System

RaisePacketReceived() protected method

protected RaisePacketReceived ( byte packetData, int size ) : void
packetData byte
size int
return void

Reset() protected method

protected Reset ( ) : void
return void

WriteNewData() public method

public WriteNewData ( byte buf ) : void
buf byte
return void