您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
15 行
475 B
15 行
475 B
namespace LiteNetLib.Layers
|
|
{
|
|
public abstract class PacketLayerBase
|
|
{
|
|
public readonly int ExtraPacketSizeForLayer;
|
|
|
|
protected PacketLayerBase(int extraPacketSizeForLayer)
|
|
{
|
|
ExtraPacketSizeForLayer = extraPacketSizeForLayer;
|
|
}
|
|
|
|
public abstract void ProcessInboundPacket(ref byte[] data, ref int length);
|
|
public abstract void ProcessOutBoundPacket(ref byte[] data, ref int offset, ref int length);
|
|
}
|
|
}
|