
redis.server.netty.RedisCommandDecoder Maven / Gradle / Ivy
package redis.server.netty;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ReplayingDecoder;
import redis.netty4.Command;
import java.io.IOException;
import java.util.List;
import static redis.netty4.AbstractRedisDecoderState.readLong;
/**
* Decode commands.
*/
public class RedisCommandDecoder extends ReplayingDecoder {
private byte[][] bytes;
private int arguments = 0;
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy