Package top.focess.qq.api.net.packet
Class ServerPackPacketCodec
- java.lang.Object
-
- top.focess.qq.api.net.packet.PacketCodec<ServerPackPacket>
-
- top.focess.qq.api.net.packet.ServerPackPacketCodec
-
public class ServerPackPacketCodec extends PacketCodec<ServerPackPacket>
Codec for ServerPackPacket.
-
-
Constructor Summary
Constructors Constructor Description ServerPackPacketCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerPackPacketreadPacket(PacketPreCodec packetPreCodec)Read the special packet from precodecvoidwritePacket(ServerPackPacket packet, PacketPreCodec packetPreCodec)Write the packet to the precodec
-
-
-
Method Detail
-
readPacket
public ServerPackPacket readPacket(PacketPreCodec packetPreCodec)
Description copied from class:PacketCodecRead the special packet from precodec- Specified by:
readPacketin classPacketCodec<ServerPackPacket>- Parameters:
packetPreCodec- the precodec- Returns:
- the packet
-
writePacket
public void writePacket(ServerPackPacket packet, PacketPreCodec packetPreCodec)
Description copied from class:PacketCodecWrite the packet to the precodec- Specified by:
writePacketin classPacketCodec<ServerPackPacket>- Parameters:
packet- the packetpacketPreCodec- the precodec
-
-