com.jnngl.server.PacketDefragmentation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of totalcomputers Show documentation
Show all versions of totalcomputers Show documentation
Computers in vanilla Minecraft | TotalOS SDK
The newest version!
package com.jnngl.server;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
import java.util.List;
/**
* tcp fragmentation
* @since Protocol 2
*/
public class PacketDefragmentation extends ByteToMessageDecoder {
private ByteBuf buf = null;
private int remaining = 0;
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List