final class CachedPacket
Class CachedPacket. Provides cachedpacket functionality for the Hytale server.
java.lang.Object > CachedPacket
Field Summary
buf
final
ByteBuf
buf
Field buf.
Method Detail
CachedPacket
public
private
CachedPacket
(final Class packetType, final int packetId, final ByteBuf cachedBytes)
Method CachedPacket.
- Parameters:
final ClasspacketTypefinal intpacketIdfinal ByteBufcachedBytes
cache
Method cache.
- Parameters:
@Nonnull final Tpacket
getId
public
int
getId
()
Method getId.
serialize
public
void
serialize
(@Nonnull final ByteBuf buf)
Method serialize.
- Parameters:
@Nonnull final ByteBufbuf
computeSize
public
int
computeSize
()
Method computeSize.
getPacketType
public
Class
getPacketType
()
Method getPacketType.
getCachedSize
public
int
getCachedSize
()
Method getCachedSize.
close
public
void
close
()
Method close.