Show / Hide Table of Contents

# Class PacketLayerBase

##### Inheritance

object
PacketLayerBase
Crc32cLayer
XorEncryptLayer

###### Namespace: LiteNetLib.Layers

###### Assembly: LiteNetLib.dll

##### Syntax

    public abstract class PacketLayerBase

### Constructors

#### PacketLayerBase(int)

##### Declaration

    protected PacketLayerBase(int extraPacketSizeForLayer)

##### Parameters

Type | Name | Description
--- | --- | ---
int | extraPacketSizeForLayer |

### Fields

#### ExtraPacketSizeForLayer

##### Declaration

    public readonly int ExtraPacketSizeForLayer

##### Field Value

Type | Description
--- | ---
int |

### Methods

#### ProcessInboundPacket(ref IPEndPoint, ref byte[], ref int)

##### Declaration

    public abstract void ProcessInboundPacket(ref IPEndPoint endPoint, ref byte[] data, ref int length)

##### Parameters

Type | Name | Description
--- | --- | ---
IPEndPoint | endPoint |
byte[] | data |
int | length |

#### ProcessOutBoundPacket(ref IPEndPoint, ref byte[], ref int, ref int)

##### Declaration

    public abstract void ProcessOutBoundPacket(ref IPEndPoint endPoint, ref byte[] data, ref int offset, ref int length)

##### Parameters

Type | Name | Description
--- | --- | ---
IPEndPoint | endPoint |
byte[] | data |
int | offset |
int | length |