@FunctionalInterface public interface Deserializer<U extends IPacket>
| Modifier and Type | Method and Description | 
|---|---|
U | 
deserialize(byte[] data,
           int offset,
           int length)
Deserialize a packet object from a byte array. 
 | 
U deserialize(byte[] data, int offset, int length) throws DeserializationException
data - input array to take packet bytes fromoffset - index where this packet header begins in the byte arraylength - length of the packet headerDeserializationException - if the packet cannot be deserialized
 from the input